suppose string s1="rajnish";
string s2="bhaskar";
then what will be happend ?
Answer Posted / kvk
two object will be saved in string constant pool
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is temp in java?
What is meant by stack and queue?
Is java still necessary?
What is the purpose of a default constructor?
What do you understand by synchronization?
What are meta-annotations?
Which number is denoted by leading 0x or 0x in java?
What is string [] args?
What is the difference between abstract classes and interfaces?
What is collection api?
Where are variables stored?
I want to re-reach and use an object once it has been garbage collected. How it's possible?
Which is better singleton or static class?
What do you mean by inner class in java?
Is java good for beginners?