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
how we can make a read-only class in java?
How do you implement tree mirroring in java?
What is polymorphism in java? What are the kinds of polymorphism?
How is a structure different from array ?
Explain about fail safe iterators in java?
Explain implementation and how is it different from conversion?
What is the final keyword in java?
Why can't we make a class private in java?
What does method mean?
What is loop in java?
State the difference between creating string as new () and literal.
What is jagged array in java?
Can we access the non-final local variable, inside the local inner class?
What does snprintf return?
What are the library functions in java?