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
What is the order of arraylist in java?
What is a flag variable?
Discuss about garbage collector in Java.
Is void a keyword in java?
Which list does not allow duplicates in java?
How do I print a “?
How do you check if two given string are anagrams?
Is empty .java file name a valid source file name?
What do you mean by buffering?
What is nullpointerexception?
Can you instantiate the math class in Java?
How many ways can we create singleton class?
What is the purpose of the enableevents() method?
What steps are taken when the OS shifts from one-thread execution to another?
What is meant by oops concept in java?