What is the difference between access specifiers and access modifiers in java?
Answer / Reeta Joshi
"Access specifiers in Java determine the visibility of a class, method or variable within the program. There are four access specifiers: public (visible everywhere), protected (visible within the package and subclasses outside the package), default (visible only within the same package), and private (visible only within the same class). Access modifiers, on the other hand, determine the level of access for variables and methods within a class. In Java, there are three access modifiers: public, protected, and private."n
| Is This Answer Correct ? | 0 Yes | 0 No |
What are checked exceptions?
What are the major drawbacks of external iteration?
How are this() and super() used with constructors in java programming?
What must a class do to implement an interface in java programming?
What about instanceof operator in java?
Is minecraft java edition free?
Why is java so important?
What are mutable classes?
How many types of memory areas are allocated by JVM in java?
What are recursive functions?
What is the significance of java packages?
What is finally block?