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 an example of character?
How can I debug the Java security exceptions and AccessControlExceptions?
What are data structures in java?
Explain different ways of creating a thread?
can java object be locked down for exclusive use by a given thread? : Java thread
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
Write a code to create a trigger to call a stored procedure
What are java packages? What is the significance of packages?
Explain spliterator in java8?
What is the default value of an object reference declared as an instance variable?
What is the purpose of nested class in java?
What is a line break?
Can you explain the usages of class.forname()?
Mention a package that is used for linked list class in java.
What is a blocking method in Java?