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 meant by oops concept in java?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
Is set thread safe java?
What are latest features introduced with java 8?
Can we have more than one package statement in source file ?
Similarity and difference between static block and static method ?
What is a byte array?
Name some OOPS Concepts in Java?
What is getkey () in java?
Is assembly language a low level language?
What is the difference between hashmap and hashtable in java?
Can bool be null?
v-model life cycle
What is vector?
What is the difference between Grid and Gridbaglayout?