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

If declare class as final that means can not Inherited
in subclass.if declare final data members then must be
initializing at randomly or inside constructor otherwise
generate error

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an enumeration?

1068


What is run time allocation?

1025


What is a newline character in java?

1040


what is thread in Java ?

1162


What is object english?

1061


Can set contain duplicates?

996


Can we create a constructor in abstract class?

982


What are the main uses of java?

992


What is the current version of java?

1039


How do you convert boolean to boolean?

1159


How does arraylist size increase in java?

1118


What is functional interface in java?

1050


What is nullpointerexception?

1074


How do you format in java?

1008


What is jrmp?

968