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 / ganesh reddy

declare calss as a final...

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain wait(), notify() and notifyall() methods of object class ?

1015


Explain the public class modifier?

941


Explain what access modifiers can be used for methods?

1071


What is the primitive type short?

1009


How do I get a substring?

957


What is an class?

1018


What is output buffer?

1025


Explain 5 features introduced in jdk 1.7?

1008


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

1055


What is the purpose of the finalize() method?

1235


What is bean? Where it can be used?

1074


Can constructor be synchronized?

927


What is class variable java?

996


State the difference between strings and arrays.

1219


What does sprintf return?

1042