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

Is arraylist zero based?

1020


Is empty string in java?

1123


What are the different types of collections in java?

931


What do you know about the garbage collector in java?

1058


Can constructor return value?

922


What is a constructor overloading in java?

1001


What is the difference between array list and vector in java?

914


What is default constructors?

954


Explain the difference between private, public, package and protected in java?

1007


What is an empirical question?

922


What is file in java?

996


What is maximum size of arraylist in java?

977


How destructors are defined in java?

1147


What is the final keyword?

951


What is the purpose of abstract class?

985