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 a lock or purpose of locks in java?

971


Can we execute a program without main?

963


A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.

959


Why java is considered as platform independent?

963


What is an interface in java?

1007


What is meant by tab pans?

1132


Does printwriter create a file?

910


How do you make an arraylist empty in java?

888


What are methods of a class?

974


What is the list interface in java programming?

1038


What is bool mean?

1003


Is namespace same as package in java?

935


Explain the difference between comparator and comparable in java?

880


Define interface in java?

1023


What is java objectoutputstream?

930