How do you empty a list in java?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

we have a 100 classes at that time which class we have to write main method? pls help me

6 Answers   Wipro,


What are structs in java?

0 Answers  


if a java file without any source code is valid java file?

3 Answers   SparkTG,


Why does java have two ways to create child threads? Which way is better?

0 Answers  


What is the purpose of return statement?

0 Answers  






Why is singleton not thread safe?

0 Answers  


What are the 8 data types in java?

0 Answers  


Real Time sample code for Encapsulation and Abstraction. where to use abstract and where to use specifies like public private.

2 Answers  


What is the right data type to represent a price in java?

0 Answers  


If I will write String s=new String("XYZ"); String s1=new String("XYZ"); if(s.equals(s1)){ sop("True"); } else{ sop("False"); } This program will give me "True". But When I am creating my own class suppose class Employee{ public Employee(String name); } Employee e= new Employee("XYZ"); Employee e1 = neew Employee("XYZ"); if(e.equals(e1)){ sop("True"); } else{ sop("False"); } Then it will give the output as "False". Can I know what is happening internally?

5 Answers  


What is numeric data type?

0 Answers  


What is empty list in java?

0 Answers  


Categories