Java Programming - MCQ Practice Questions
Java interviews and campus tests lean heavily on object oriented behaviour rather than API recall. This set covers inheritance and polymorphism, interfaces and abstract classes, the collections framework, exception handling, multithreading, string handling, and JVM basics such as garbage collection. Output based questions are included because they expose the gaps that theory questions hide.
951 questions | 100% Free
Can a class extend multiple classes in Java?
What is the access modifier of members declared in an interface?
What is the default access modifier for class members in Java if not explicitly specified?
Which keyword is used to prevent a class from being subclassed?
Can you instantiate an interface in Java?
What is the default access modifier for a class member in Java if no modifier is specified?
Which keyword is used to prevent a class from being subclassed in Java?