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 difference between ArrayList and Vector? which one is better in Java
describe synchronization in respect to multithreading? : Java thread
What is java in layman terms?
What is the program compilation process?
Why is the main method declared static?
What is an example of character?
Do you need to import math in java?
What is the difference between equals() and == in java?
What is ctrl m character?
What is the disadvantage of synchronization?
Name few java 8 annotations ?
What are adapter classes?
Is it safe to install java on my computer?
How to handle a web browser resize operation?
If a class is declared without any access modifiers, where can the class be accessed?