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

What methodology can be employed to locate substrings inside a string?

901


What is collections framework?

1097


Explain enumeration in java?

950


What is the purpose of methodology?

1025


What are streams in java 8?

939


Describe different states of a thread.

939


How does finally block differ from finalize() method?

997


What is class forname used for?

993


How to access arraylist elements in java?

938


Explain about main thread in java?

1036


Explain different ways of creating a thread?

983


Can you call one constructor from another if a class has multiple constructors?

968


What is difference between float and double?

909


What is meant by method?

1009


What is a parameter in matrices?

981