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 the exact difference in between Unicast and Multicast object?

2054


What causes memory leak in java?

890


Do I need java on my pc?

987


How does a for loop work?

953


Can we return null in java?

1075


What is a java predicate?

922


Why set is used in java?

964


What are peerless components in java programming?

965


What are the advantages of packages in java?

1457


Why is string buffer better than string ?

1051


Which class represents the socket that both the client and server use to communicate with each other?

980


What is java util collection?

1010


What are dot operator queries?

1064


Can we declare array without size in java?

967


When do you get classcastexception?

986