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
What is meant by class loader? How many types are there?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
What is string [] args?
Why java is not 100% object-oriented?
Does java vector allow null?
How to restrict a member of a class from inheriting by its sub classes?
Tell me are there implementations for sorting and searching in the java libarary?
Are floats faster than doubles?
What is tochararray in java?
What is the purpose class.forname method?
What is a parameter in simple terms?
What is the gregoriancalendar class in java programming?
Can you start a thread twice in Java?
Can a lock be acquired on a class in java programming?
I want to re-reach and use an object once it has been garbage collected. How it's possible?