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...

when i write
string s1="java";
in one program(application) and
string s2="java";
in another application
on the same jvm will both objects s2,s2 will refer to same
memory location where "java" is stored
in string pool.

Answer Posted / tj

Yes,They will refer to same memory location..

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If you are given the name of the function at run time how will you invoke the function?

1122


Can arraylist contain null values?

998


who can i handle multiple client in RMI

1877


Is string a datatype?

974


Why is String immutable?

1040


Which container method is used to cause a container to be laid out and redisplayed in java programming?

1091


What do you mean by aggregation?

1296


What is the final method?

1062


Can we declare the main method of our class as private?

981


What is valid keyword in java?

985


What is the difference between compare and compareto in java?

1013


What is a bubble sort in java?

933


Is empty in java?

1042


What are peerless components in java programming?

994


Define locale.

1026