suppose string s1="rajnish";
string s2="bhaskar";
then what will be happend ?

Answer Posted / ravikiran

two objects will be saved in the heap

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is stack example?

537


Can you tell me range of byte?

553


Explain treeset?

583


What is difference between adapter class and listener?

489


What is the instance of an object?

542






What is the order of arraylist in java?

600


When we serialize an object does the serialization mechanism saves its references too?

501


What is the difference between jdk and jre?

598


Can a class be defined inside an interface?

553


Can you inherit a constructor java?

569


When is an object subject to garbage collection?

568


how come we know the object is no more used in the class?

5393


How many classes can any class inherit java?

500


What is the difference between super class & sub class?

558


why an outer class cannot be declared as private?

3602