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

Can an interface have a constructor?

969


What is difference between static variable and global variable?

1063


How we create object in copy constructor?

1118


What happens if a constructor is declared private?

1031


What is a parameter in a function?

993


How is treeset implemented in java?

1025


What is the most important feature of java? What is an interface?

1010


How many characters is 16 bytes?

996


What is unicode used for?

1155


What invokes a thread's run() method in java programming?

1185


Is overriding possible in java?

959


What is java reflection api?

1012


How to instantiate member inner class?

1075


Can list be null in java?

1034


What are the types of strings?

1032