what is the Diff. between Access Specifiers and Access
Modifiers?
Answer Posted / ajeesh
access specifier
One of the techniques in object-oriented programming is
encapsulation. It concerns the hiding of data in a class and
making this class available only through methods. In this
way the chance of making accidental mistakes in changing
values is minimized. Java allows you to control access to
classes, methods, and fields via so-called access specifiers.
Is This Answer Correct ? | 3 Yes | 7 No |
Post New Answer View All Answers
How will you load a specific locale?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
Explain listiterator and methods in listiterator?
What happens to the Exception object after handling an exception?
What does this () mean in constructor chaining concept?
What is e java?
There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?
What is the properties class in java programming?
Why is java called java?
Can a constructor be private and how are this() and super() method used with constructor?
What is a line break example?
Difference between current previous versions of Java?
Is a class an object?
Can we have multiple public classes in a java source file?
What is comparable and comparator interface? List their differences