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 an example of character?

1137


How can I debug the Java security exceptions and AccessControlExceptions?

1155


What are data structures in java?

981


Explain different ways of creating a thread?

1058


can java object be locked down for exclusive use by a given thread? : Java thread

1103


EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.

9210


Write a code to create a trigger to call a stored procedure

980


What are java packages? What is the significance of packages?

1016


Explain spliterator in java8?

1054


What is the default value of an object reference declared as an instance variable?

1128


What is the purpose of nested class in java?

1089


What is a line break?

1033


Can you explain the usages of class.forname()?

1074


Mention a package that is used for linked list class in java.

982


What is a blocking method in Java?

1249