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

Answer Posted / tejas gowda

Two String Object run successfuly and will be saved in the
heap memory

Is This Answer Correct ?    0 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is flush buffer?

497


What is the advantage of OOP in java?

643


Which class is the superclass of all classes?

572


What are the different collection views provided by maps?

541


How do you write a scanner class in java?

547






Can a constructor call another constructor?

543


What is arguments in java?

493


What is a lambda expression ? What's its use ?

545


What are the six ways to use this keyword?

583


What is equlas() and hashcode() contract in java? Where does it used?

580


Can we declare an interface as final?

550


What is difference between calling start() and run() method of thread?

536


Can you sort a list in java?

504


Why can't you declare a class as protected?

581


What is the difference between method and means?

551