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 / teja

dont provider setters and provide the parameter constructor

Is This Answer Correct ?    10 Yes 27 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by stream pipelining in java 8?

1227


extending thread class or implementing runnable interface. Which is better? : Java thread

999


What is meant by object?

1006


What do you mean by default constructor in java?

1068


When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

1004


What is the difference between member variables initialization and assignment in a constructor?

1269


What’s the difference between constructors and other methods?

1000


What is java english?

1002


How many bytes is 255 characters?

982


What is the purpose of a volatile variable?

1055


Explain with example the concept of constant variable in java.

1179


How finally used under exception handling?

948


How does regex work?

960


What do you mean by light weight and heavy weight components?

1016


How can you handle java exceptions?

1029