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 exactly is a .class file?

1033


How will you reverse a link list without using recursion?

1018


How to implement a multithreaded applet?

2648


Is jdk required on each machine to run a java program?

1264


What is java volatile?

1022


What is the static method?

1057


What language is an assembler written in?

981


What are the main concepts of oops in java?

1712


What is the purpose of the runtime class in java programming?

1043


What are the differences between include directive and include action?

1153


What do you mean by an object in java?

1118


What comes to mind when someone mentions a shallow copy in java?

1100


How to find the index of the largest number in an arraylist java?

1009


How objects are stored in java?

1019


What do you know about the garbage collector in java?

1067