Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Core Java - Interview Questions and Answers for 'Mutator' - 1 question(s) found - Order By Newest|
|Ans. Mutator is another name for setter methods, i.e the method allows for mutating the property of an object and eventually the state of the object.|
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  setter method  mutator|
| Why are Getter and Setter better than directly changing and retrieving fields ?|
What is the significance of variable hiding in Java ?
Why it's preferred to keep variables private and allow their access through getter and setter methods ?
|How to generate getters and setters automatically in eclipse ?|
|What ate the getter and setter methods ?|
|Is it advisable to set the member variables through constructors instead of setting them through setters ?|
|Difference between constructor and setter injection ?|
|Are getters setter / accessor mutator methods instance methods or static methods ? why ?|
|What is setter injection ?|
|Give specific situation about when to go for constructor based injection and setter based injection in spring.|