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 / ss

String s1="java";
String s2="java";
System.out.println(s1.equals(s2)); -->true
System.out.println(s1==s2); --->true

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java util list serializable?

921


How many ways can we create the string object?

1013


why Java does not support multiple inheritances?

1144


What is the full meaning of java?

1039


What do you mean by jjs in java8?

984


What class of exceptions are generated by the java run-time system?

1174


What are the differences between checked exception and unchecked exception?

955


What is an 8 bit word?

1044


What are the rules for naming an array?

1047


Can you use abstract and final both with a method?

1054


Is string a data type in java?

1012


How do generics work in java?

1015


What is the maximum size of hashmap in java?

988


What do you mean by local class?

1004


How many bits is a 64 bit byte?

1067