What are accessor methods in java?
Answer / 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 |
What is the size of int?
Is java a super set of javascript?
when we write class.forName("any one class"); what happens actually?what it will return?explain stepwise?
Explain garbage collection in java?
What access modifiers can be used for class ?
what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread
What is byte value?
What are reference variables in java?
What is the superclass of exception?
Can you extend main method in java?
Can we inherit inner class?
What is a reflection package?