suppose string s1="rajnish";
string s2="bhaskar";
then what will be happend ?
Answer Posted / ravi jain
2 new string objects will be created in String pool area in JVM.
String are immutable that why they are stores in
different area in JVM
as in case of final variables.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between extends thread vs implements runnable in java?
What’s the difference between unit, integration and functional testing?
What does you mean in math?
What is string in java? String is a data type?
Explain implementation and how is it different from conversion?
Mention some features of java?
What is compareto () in java?
How do you write a conditional statement?
What does I ++ mean?
What is singleton class and how can we make a class singleton?
What are keywords in java?
What exceptions occur during serialization?
Define how destructors are defined in java?
List the interfaces which extends collection interface?
What are the advantages of java over cpp?