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 benefit of inner classes in java?
Difference between nested and inner classes ?
How to overcome the exception object reference not set to an instance of object?
What is rule of accessibility in java?
What is the significance of continue jump statement? Explain with an example.
which pattern is default in scanner package?
Which is easier netbeans or eclipse?
What do u mean by variable?
What is an array in java?
What are thread safe functions?
Which variable is the independent variable?
Is space a character in java?
What is the difference between state-based unit testing and interaction-based unit testing?
Which object oriented concept is achieved by using overloading and overriding?
What is the longest unicode character?