What is an accessor?
Answers were Sorted based on User's Feedback
Answer / ritesh pal
An accessor is a class operation that does not modify the state of an object. The accessor functions need to be declared as const operations
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / Prafull Gupta
In Java, an Accessor (also known as Getter or Access Method) is a method that allows you to retrieve the value of a private instance variable. It's often used in encapsulation to provide controlled access to an object's state.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can memory leak in java?
Describe what a thread-local variable is in java?
What is super?
Why declare Main() inside the class in java ?
What modifiers are allowed for methods in an interface?
What do you mean by platform independence? What is an interface?
What is prefix of a string?
What are recursive functions?
Does 'true' and 'false' are keywords?
When will we use class loader?
Explain about java sdk?
Can we sort arraylist in java?