adspace
Answer Posted / Rajesh Kumar
Accessor methods (also known as getter and setter methods) are used to access or modify the private fields of a class from other classes. They have the same name as the private field but they start with 'get' for getting and 'set' for setting.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Differentiate between static and non-static methods in java.
What is an object in java and how is it created?
What is a constructor overloading in java?
What is parsing in java?
What is the difference between equals() and == in java?
What are the differences between heap and stack memory in java?
Realized?
Explain public static void main(string args[]) in java.
Is minecraft 1.15 out?
How to sort array in descending order in java?
explain different ways of using thread? : Java thread
Write a program to find the whether a number is an Armstrong number or not?
What is the difference between break and continue statements?
What is java string pool?
What is a classloader in java?