-
-
-
Imagine there is a class Employee. We create an object of EmployeeEmployee a= New Employee();If we are givingSystem.out.println(a);What gets printed?
It gives the memory location of Employee object.
-
-
-
-
-
-
-
String b=new String("A");
String c="A";
String d="A";
Then which of the following returns true?
1. if(a==b)
2. if(b==c)
3. if(c==d)
4. if(d==a)">String a=new String("A");String b=new String("A");String c="A";String d="A";Then which of the following returns true?1. if(a==b)2. if(b==c)3. if(c==d)4. if(d==a)
-
-
-
-
-
-
-
-
-
-
Java Interview Questions
Ans