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 are the ways to instantiate the class class?
what is method reference in java 8?
What is the purpose of tostring() method in java?
Difference between vector and arraylist.
Can you make a constructor final in Java?
Is sizeof a preprocessor?
How define set in java?
What are the three types of design patterns?
Why inputstreamreader is used in java?
What is procedure writing?
What is fail fast in java?
What is a Null object?
Can a lock be acquired on a class in java programming?
What is the name of the java compiler?
What is nested loop? What is dangling else condition in it?