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 synonym of procedure?
What are three advantages of using functions?
What is a classloader in java?
What is java util list?
What do heavy weight components mean in java programming?
What’s the difference between applets and standalone program?
What does int [] mean in java?
What is the purpose of using java.lang.class class?
What is difference between calling start() and run() method of thread?
Which package is always imported by default?
Can we execute a program without main() method?
What are filterstreams?
how to open and edit XML file in Weblogic???
What is an immutable class?
What is meant by main method?