1).what is the difference between below examples
String s="vijay";
String s=new String("vijay");
Answer Posted / p.sreekiran
in first string class it create in heep memory and second
is created object in constant memeory we cannot change the
second one
| Is This Answer Correct ? | 2 Yes | 13 No |
Post New Answer View All Answers
How to create com object in Java?
What is fail first in java?
Is zero a positive integer?
What is immutability in java?
What is identifier with example?
Can you pass by reference in java?
Is this valid in java ? Can we instantiate interface in java?
why Interface used?
Explain different types of thread priorities ?
Can we call the constructor of a class more than once for an object?
What is a cup of java?
Does chrome use java?
What advantage do java's layout managers provide over traditional windowing systems?
Name four container classes.
what are the high-level thread states? : Java thread