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

1).what is the difference between below examples

String s="vijay";

String s=new String("vijay");

Answer Posted / karun_cts

the two instances are created with the same name but one is
storing in constant pool and another one is saved in the
non constant pool.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is double word?

971


What is the purpose of void class?

1060


Can private members of a base class are inheritable justify?

921


What is the difference between the direct buffer and non-direct buffer in java?

1023


what type of questions asked for barclays technologies pune please send urgent

5659


How can you handle java exceptions?

1020


What do you mean by a JVM?

1240


If an application has multiple classes in it, is it okay to have a main method in more than one class?

1007


What does += mean coding?

925


Is hashmap thread safe?

977


Explain how to convert any java object into byte array.

967


How can you add and remove nodes in jtree?

1035


Can we override a variable in java?

999


How to do a true java ping from windows?

1137


What is temp in java?

994