1).what is the difference between below examples
String s="vijay";
String s=new String("vijay");
Answer Posted / ramya
as kiran said in the first answer that the string created
in the heap memory can be changed,is it that the memory in
the heap can be changed.I read it as heap provides a stable
storage.Please clarify.Thanks in advance.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is the final method?
Why is singleton not thread safe?
What is the difference between actual and formal parameters?
What is the difference between the font and fontmetrics classes in java programming?
What is passing by reference in java?
What are the three types of design patterns?
What do you mean by mnemonics?
What is defined as false sharing in the context of multithreading?
Explain the significance of class loaders in bootstrap?
What is native method in java?
What are different types of states exist for a thread?
What is t in generics in java?
Is list ordered in java?
How can u increase the heap size in the memory?
Can we override private constructor in java?