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

Why do we need array in java?

1012


how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT

2420


Is constructor inherited?

959


Garbage collection in java?

1016


What is the applet security manager, and what does it provide?

994


What should I import for arraylist in java?

1034


What is the difference between a method and a function in alice?

1192


What is import java util arraylist?

1180


Can we create a constructor in abstract class?

979


what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent

2171


How to sort array of 0 and 1 in java?

947


Give some features of interface?

1065


What are access specifiers in java ?

1136


Can substring create new object?

1121


What is the syntax and characteristics of a lambda expression? Explain

1043