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
What exactly is a .class file?
How will you reverse a link list without using recursion?
How to implement a multithreaded applet?
Is jdk required on each machine to run a java program?
What is java volatile?
What is the static method?
What language is an assembler written in?
What are the main concepts of oops in java?
What is the purpose of the runtime class in java programming?
What are the differences between include directive and include action?
What do you mean by an object in java?
What comes to mind when someone mentions a shallow copy in java?
How to find the index of the largest number in an arraylist java?
How objects are stored in java?
What do you know about the garbage collector in java?