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 the Concept of Encapsulation in OOPS

1031


What is a dynamic array java?

988


If we don’t want some of the fields not to serialize how to do that?

1063


What are the 6 functions?

1022


Which is better stringbuffer or stringbuilder?

968


Can a class be private or protected in java?

1109


Is a method a function?

1094


What do you mean by formatting?

1045


Can we override compareto method?

987


How does linkedlist work in java?

989


why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

1047


What is oop principle in java?

1262


What is an image buffer?

1030


What is a list in java?

993


Can we override final method?

1068