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

What is the different types of functions?

1059


What is generics in java interview questions?

1067


What is the purpose of file class?

1025


What is array initialization in java?

1102


How many bytes is a url?

986


What do heavy weight components mean in java programming?

954


What are the restriction imposed on a static method or a static block of code?

1060


How to implement an arraylist in java?

1163


What is thread start?

961


What is the major advantage of external iteration over internal iteration?

1111


Is a method a procedure?

1056


What is the use of private static?

1052


Which language is java?

989


Why is the main method declared static?

1140


What is rule of accessibility in java?

1029