Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / ravi jain

2 new string objects will be created in String pool area in JVM.

String are immutable that why they are stores in

different area in JVM

as in case of final variables.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does jenkins do?

863


What environment variables are required to be set on a machine in order to run Java programs?

1107


What is a constructor overloading in java?

981


What is the impact of declaring a method as final?

963


How does a cookie work in Servlets?

788


What is prefix of a string?

972


What is the purpose of final keyword and when to use it?

940


Is array dynamic in java?

875


Write code to implement bubble sort in java?

942


What are the various access specifiers in java?

943


What are java methods?

1034


What is the basic concepts of OOPS?

1128


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

965


What is indexof in java?

938


Is oracle charging for java?

966