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 class immutable

Answer Posted / a kumar

Make the class as final..
like
public final class String

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How hashmap works in java?

1033


Why can we not override static method?

1098


Java Compiler is stored in JDK, JRE or JVM?

1511


What is the purpose of methodology?

1065


What is the independent variable in an experiment?

951


take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).

1964


What is byte value?

977


How can you read an integer value from the keyword when the application is runtime in java? example?

1114


Lowest Common ancestor in a Binary Search Tree and Binary Tree.

920


What are the access modifiers in java?

1023


What is the use of using enum to declare a constant?

1011


What is a top level class in java?

1008


How do you make an arraylist empty in java?

914


How do I stop concurrentmodificationexception?

1019


How are variables stored?

964