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 are the new features in java 8? Explain

951


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

932


Explain the difference between comparator and comparable in java?

963


What is string and example?

1045


make a method which any number and any type of argument and print sum of that arguments.....

1820


What is application system?

946


Why is stringbuffer called mutable?

1001


What is abstract class? Explain

1046


Can a abstract class be declared final?

1000


How many types of parsers are there?

1019


Explain oops concepts in detail?

1029


Explain working of call by reference function invoking.

1027


What is final access modifier in java?

1151


How do you input a string in java?

1086


How does the garbage collector works in java?

1093