Java Operators

Java Control Statements

Object Oriented Programming

Java Built-in Classes

Java File Handling

Java Error & Exceptions

Java Multithreading

Java Synchronization

Java Networking

Java Collections

Java Interfaces

Java Data Structures

Java Collections Algorithms

Advanced Java

Java Miscellaneous

Java APIs & Frameworks

Java Class References

Java Useful Resources

Quiz on Java Modifier Types



1. What is the purpose of access modifiers in Java?
2. Which access modifier makes a class member accessible only within its own package?
3. What does the 'protected' access modifier allow?
4. What is the highest level of access in Java?
5. Which modifier should be used to restrict a class member to only the containing class?

Advertisements