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...

What is the use of Getters and Setters method ?

Answer Posted / adarsh gowda

Getter and setter methods are used to retrieve and manipulate private variables in a different class. A "getter" method does as it name suggest, retrieves a the attribute of the same name. A setter method allows you to set the value of the attribute.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is main an identifier?

1062


What does arrays sort do in java?

1084


why are there separate wait and sleep methods? : Java thread

1082


What is ternary operator in java?

1128


What is tochararray in java?

994


What is generic type?

1081


Explain OOPs concept.

1157


Which is fastest collection in java?

1148


What is the size of an array?

1083


What is the purpose of javac exe?

1152


How many threads can I run java?

1181


Can a class extend more than one class?

1168


How to reverse a string in java?

1137


What is hashtable and explain features of hashtable?

1045


Name some OOPS Concepts in Java?

1137