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

Are generics important java?

931


What package is math in java?

959


What is method and methodology?

1058


Does variable declaration allocate memory?

998


Which method must be implemented by all threads?

1211


What is a parameter in matrices?

997


What is array length?

938


If a method is declared as protected, where may the method be accessed?

972


How do you create a reference in java?

928


Can we convert stringbuffer to string?

963


What is pass by value?

902


What is math exp in java?

1013


What is the use of singleton class?

916


How to check if linked list contains loop in java?

857


Name four container classes.

939