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 / ravi jain

in above ans

marking the all methods as final gives no mean as
class is final.

for methods point of view do not provide any
setter/mutator methods in class.

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is singleton class in java?

1052


What are untrusted applets?

1144


What is native method in java?

1057


Distinguish between a predicate and a function?

985


Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?

1144


How to access arraylist elements in java?

991


What are the advantages of defining packages in java?

984


a thread is runnable, how does that work? : Java thread

1009


How do you reverse sort in java?

943


What are anonymous inner classes?

1010


How does hashset work in java?

1118


What is an infinite loop?

1255


What is native code?

1120


What is the function of compareto in java?

1051


Give few examples of final classes defined in Java API?

1197