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 / uday

Hi All,
Here one object is stored in the heap and you said that
you can change that, but bydefault String objects are
immutable(ReadOnly), how can u change it?

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why java is a platform independent? Explain

1157


What is the common usage of serialization? What exceptions occur during serialization?

1193


how do I create a runnable with inheritance? : Java thread

1027


Can java list be null?

1038


How do you define a singleton class?

1153


When is finally block not called?

1144


What does the string method compareto () do?

1113


What are static initalizers in java ?

1059


What is the difference between hashmap and hashtable in java?

1173


How many wrapper classes are there in java?

1063


What is dot operator?

1090


Which is the best approach for creating thread ?

1269


What is method overloading with type promotion?

1337


What is boolean query?

1037


What is the default value of the local variables?

1077