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
Can you extend main method in java?
Can we assign the reference to this variable?
What is replacefirst in java?
What is cr keyboard?
Explain features of interfaces in java?
What is finally in Java?
What is java in detail?
What are the three types of design patterns?
What is JFC?
What is the difference between serializable and externalizable interfaces?
What is keyword auto for?
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
Similarity and difference between static block and static method ?
Can we declare a class as abstract without having any abstract method?