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


Please Help Members By Posting Answers For Below Questions

How will you load a specific locale?

729


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

874


Explain listiterator and methods in listiterator?

752


What happens to the Exception object after handling an exception?

2077


What does this () mean in constructor chaining concept?

813


What is e java?

772


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?

1236


What is the properties class in java programming?

737


Why is java called java?

784


Can a constructor be private and how are this() and super() method used with constructor?

735


What is a line break example?

757


Difference between current previous versions of Java?

785


Is a class an object?

778


Can we have multiple public classes in a java source file?

777


What is comparable and comparator interface? List their differences

827