1).what is the difference between below examples
String s="vijay";
String s=new String("vijay");
Answer Posted / karun_cts
the two instances are created with the same name but one is
storing in constant pool and another one is saved in the
non constant pool.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is double word?
What is the purpose of void class?
Can private members of a base class are inheritable justify?
What is the difference between the direct buffer and non-direct buffer in java?
what type of questions asked for barclays technologies pune please send urgent
How can you handle java exceptions?
What do you mean by a JVM?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
What does += mean coding?
Is hashmap thread safe?
Explain how to convert any java object into byte array.
How can you add and remove nodes in jtree?
Can we override a variable in java?
How to do a true java ping from windows?
What is temp in java?