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

What is core java used for?

1125


How to overcome the exception object reference not set to an instance of object?

1153


What is a locale?

1152


What is JVM and is it platform independent?

1052


What makes a function well defined?

990


What if I write static public void instead of public static void in java?

1091


What is the difference between jdk and jre?

1064


What are recursive functions?

1059


Enlist few advantages of inheritance?

1075


Why volatile is used in java?

1071


What is meant by JVM? Is JVM platform independent or not?

1079


Why doesn't the java library use a randomized version of quicksort?

995


Is main is a keyword?

1000


Why is core java important?

1044


What does n mean in java?

972