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

What is basic syntax?

1036


In which order the iterator iterates over collection?

992


What are the differences between this and super keyword?

941


Is array dynamic in java?

928


What do you understand by the term wrapper classes?

1002


Can we override tostring method in java?

970


What is variable explain?

995


Can the garbage collection be forced by any means?

989


What is the use of :: in java?

1010


What does arrays sort do in java?

1015


What is preparedstatement in java?

1043


What is palindrome in java?

984


What is the base class of all exception classes?

1065


why an outer class cannot be declared as private?

4317


What are green threads in java?

999