How do you empty a list in java?
No Answer is Posted For this Question
Be the First to Post Answer
we have a 100 classes at that time which class we have to write main method? pls help me
What are structs in java?
if a java file without any source code is valid java file?
Why does java have two ways to create child threads? Which way is better?
What is the purpose of return statement?
Why is singleton not thread safe?
What are the 8 data types in java?
Real Time sample code for Encapsulation and Abstraction. where to use abstract and where to use specifies like public private.
What is the right data type to represent a price in java?
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?
What is numeric data type?
What is empty list in java?