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


Please Help Members By Posting Answers For Below Questions

What is temp in java?

536


What is meant by stack and queue?

590


Is java still necessary?

609


What is the purpose of a default constructor?

570


What do you understand by synchronization?

580






What are meta-annotations?

545


Which number is denoted by leading 0x or 0x in java?

551


What is string [] args?

545


What is the difference between abstract classes and interfaces?

498


What is collection api?

600


Where are variables stored?

541


I want to re-reach and use an object once it has been garbage collected. How it's possible?

529


Which is better singleton or static class?

497


What do you mean by inner class in java?

556


Is java good for beginners?

570