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

Does importing a package imports its sub-packages as well in java?

554


What is string example?

599


Does google use java?

544


What is google full form?

540


Why wait and notify methods are declared in object class?

606






Should you use singleton pattern?

528


What are strings in physics?

551


What is floor in java?

564


Can a hashset contain duplicates java?

499


what is abstract class in Java?

652


How is java created?

542


What is a numeric format?

574


What is Java Annotations?

559


What is the function of java?

517


Mention the default values of all the elements of an array defined as an instance variable.

527