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
Are generics important java?
What package is math in java?
What is method and methodology?
Does variable declaration allocate memory?
Which method must be implemented by all threads?
What is a parameter in matrices?
What is array length?
If a method is declared as protected, where may the method be accessed?
How do you create a reference in java?
Can we convert stringbuffer to string?
What is pass by value?
What is math exp in java?
What is the use of singleton class?
How to check if linked list contains loop in java?
Name four container classes.