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 is command line argument
Explain the reason behind ending a program with a system.exit(0)?
What do you mean by garbage collection used in java?
What are thread groups?
What is the arraylist in java?
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
What is java lang object?
What is difference between ++ I and I ++ in java?
What are different types of encoding?
What does the string method compareto () do?
What is a text string?
What is object of class in java?
Is array primitive data type in java?
How do I type unicode?
Is binary a low level language?