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 difference between pass by reference and pass by pointer?

1110


What is JDBC Driver interface?How can you retrieve data from the ResultSet

2112


Is java map thread safe?

976


What is array initialization in java?

1106


What is static method with example?

1185


What is a boolean used for?

1119


what do you mean by classloader?

1102


What initialize variables?

1035


How do you clear a list in java?

1136


What are constants and how to create constants in java?

988


What are bind parameters?

1059


What do you mean by Hash Map and Hash Table?

1101


Explain about exception propagation?

1046


What is internal iteration in java se 8?

1206


How to calculate the length of a singly linked list in java?

1041