-
-
What is the use of valueOf( ) method?
A) It converts data from its internal format into a human-readable form.B) It converts integer value to stringC) It converts string to int valueD) None of the above
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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