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

Can we call the constructor of a class more than once for an object?

1040


What is variable and rules of variable?

966


What does provide mean construction?

1050


What about main thread in java?

1057


Can we have multiple classes in single file ?

1012


Differentiate between == and equals().

987


What is a string token?

956


What is a cup of java?

975


What is the purpose of using javap?

1027


What is the difference between java applets and applications?

1093


What are java methods?

1031


what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent

2104


Differentiate between stringbuffer and stringbuilder in java.

975


What is null in java?

902


What function extracts specified characters from a string?

948