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...

How to make a class immutable?

Answer Posted / vaibhav

1 Make the all variables of class final and private
2. Make only private constructor

Is This Answer Correct ?    5 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Compare overloading and overriding?

1005


Where is the find and replace?

1007


Can a class have more than one object?

996


Differentiate between stringbuffer and stringbuilder in java.

1029


Why does java not support pointers?

1106


Explain different ways of creating a thread?

1052


What is a null class?

982


What is the difference between serializable and externalizable interface?

1101


What is data structure in java?

991


What do you mean by byte code?

1005


What are scalar data types?

1070


How do you sort in java?

986


What is return code?

1008


What is static import?

1175


How many wrapper classes are there in java?

1012