Answer Posted / adarsh gowda
Getter and setter methods are used to retrieve and manipulate private variables in a different class. A "getter" method does as it name suggest, retrieves a the attribute of the same name. A setter method allows you to set the value of the attribute.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is numeric function?
What is the implementation of destroy method in java. Is it native or java code?
What is the difference between object oriented programming language and object based programming language?
What is int short for?
What is t in parametric equations?
What language is an assembler written in?
How we can run a jar file through command prompt in java?
What is class array in java?
What is the common usage of serialization? What exceptions occur during serialization?
Is there is any difference between a scrollbar and a scrollpane?
What do you mean by stream pipelining in java 8?
How is final different from finally and finalize?
How to check if a list is sorted in java?
How do you reverse a string in java without using string buffer?
How many tetrahedral voids are there in bcc?