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

how we can make a read-only class in java?

938


How do you implement tree mirroring in java?

1017


What is polymorphism in java? What are the kinds of polymorphism?

1008


How is a structure different from array ?

995


Explain about fail safe iterators in java?

964


Explain implementation and how is it different from conversion?

1021


What is the final keyword in java?

1353


Why can't we make a class private in java?

978


What does method mean?

968


What is loop in java?

930


State the difference between creating string as new () and literal.

1021


What is jagged array in java?

1009


Can we access the non-final local variable, inside the local inner class?

965


What does snprintf return?

951


What are the library functions in java?

982