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 the Concept of Encapsulation in OOPS
What is a dynamic array java?
If we don’t want some of the fields not to serialize how to do that?
What are the 6 functions?
Which is better stringbuffer or stringbuilder?
Can a class be private or protected in java?
Is a method a function?
What do you mean by formatting?
Can we override compareto method?
How does linkedlist work in java?
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
What is oop principle in java?
What is an image buffer?
What is a list in java?
Can we override final method?