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 the benefit of inner / nested classes ?

1037


What is the difference in between cpp and java? Can u explain in detail?

1158


What is the final method?

1122


What is main difference between variable and constant?

1084


What is the use of static methods?

1096


Can I declare a class as private?

1127


What is the latest version of java?

1209


Write a program to print the pattern given below

994


Explain the difference between jdk, jre, and jvm?

1083


Which data type is a class in java?

1053


What are the advantages of java inner classes?

1115


Can we create our own daemon thread?

1031


Where can I find jdk in my computer?

1035


Difference between final and effectively final ?

1174


What does  mean in regex?

1110