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");

Answers were Sorted based on User's Feedback



1).what is the difference between below examples String s="vijay"; String s=new Stri..

Answer / ravikiran

first one will create an object on the heap
second one will create two objects one will saved on the
heap and another will get saved on the string pool

Is This Answer Correct ?    0 Yes 6 No

1).what is the difference between below examples String s="vijay"; String s=new Stri..

Answer / p.sreekiran

in first string class it create in heep memory and second
is created object in constant memeory we cannot change the
second one

Is This Answer Correct ?    2 Yes 13 No

Post New Answer

More Core Java Interview Questions

What is regex in java?

0 Answers  


What is thread safe java?

0 Answers  


What are java packages? What's the significance of packages?

0 Answers  


Can we declare the static variables and methods in an abstract class?

0 Answers  


What is a key in java?

0 Answers  


What is method with example?

0 Answers  


What is a vector in java?

0 Answers  


Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?

0 Answers  


what release of java technology are currently available what do they contain?

1 Answers  


what are the jsp tags with example?

1 Answers   Photon,


What is a null point?

0 Answers  


what is an objects lock and which objects have locks? : Java thread

0 Answers  


Categories