Search Interview Questions | ![]() ![]() Click here and help us by providing the answer. ![]() Click Correct / Improve and please let us know. |
|
| ||||
Interview Questions and Answers | ||||
| ||||
Ans. getters and setters methods are used to store and manipulate the private variables in java beans. A getters as it has name, suggest retrieves the attribute of the same name. A setters are allows you to set the values of the attributes. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
![]() | ||||
![]() or What is the significance of variable hiding in Java ? or Why it's preferred to keep variables private and allow their access through getter and setter methods ? | ||||
![]() | ||||
![]() | ||||
![]() | ||||