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 is command line argument

1150


Explain the reason behind ending a program with a system.exit(0)?

1036


What do you mean by garbage collection used in java?

1008


What are thread groups?

930


What is the arraylist in java?

977


How is it possible in java programming for two string objects with identical values not to be equal under the == operator?

972


What is java lang object?

921


What is difference between ++ I and I ++ in java?

909


What are different types of encoding?

1031


What does the string method compareto () do?

1007


What is a text string?

1036


What is object of class in java?

1067


Is array primitive data type in java?

941


How do I type unicode?

905


Is binary a low level language?

867