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 / amol patil

That means you should use set<yourPropertyName> for methods
that can modify
a property (normally a property maps directly to an instance
variable, but not
necessarily) and get<yourPropertyName> for methods that can
read a property.
For example, a String variable name would have the following
getter/setter methods:

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the ways to instantiate the class class?

1150


what is method reference in java 8?

1094


What is the purpose of tostring() method in java?

1235


Difference between vector and arraylist.

1187


Can you make a constructor final in Java?

1197


Is sizeof a preprocessor?

1045


How define set in java?

1145


What are the three types of design patterns?

1013


Why inputstreamreader is used in java?

1057


What is procedure writing?

1063


What is fail fast in java?

1258


What is a Null object?

1730


Can a lock be acquired on a class in java programming?

1047


What is the name of the java compiler?

1100


What is nested loop? What is dangling else condition in it?

1137