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 does jenkins do?
What environment variables are required to be set on a machine in order to run Java programs?
What is a constructor overloading in java?
What is the impact of declaring a method as final?
How does a cookie work in Servlets?
What is prefix of a string?
What is the purpose of final keyword and when to use it?
Is array dynamic in java?
Write code to implement bubble sort in java?
What are the various access specifiers in java?
What are java methods?
What is the basic concepts of OOPS?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
What is indexof in java?
Is oracle charging for java?