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

Before get into the answer, we gotta know something
prior...! "JavaBeans".
JavaBeans are java classes that have properties. For our
purpose, think of properties as private instance variables.
since they're private, the only way they can be accessed
from outside of their class is through 'methods'in the
class.
The methods that change a propertiy's value are called
setter methods, and the methods that retrieve a property's
value are called getter methods.

Is This Answer Correct ?    54 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are maps ordered java?

962


Write a function to find out longest palindrome in a given string?

1054


Is java hashset ordered?

1115


Is java se open source?

1033


What are peerless components?

1089


What is array list in java?

1083


What are the skills required for core java?

1017


Can a source file contain more than one class declaration?

997


Explain about complier design(phases)

1084


Can java list be null?

998


When should I use stringbuffer?

1020


What is variable and rules of variable?

1021


Can extern variables be initialized?

954


Which is faster set or list in java?

1034


Write a program to print fibonacci series up to count 10.

902