iGET

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

Q.21Easy

Can a class extend multiple classes in Java?

Q.22Easy

What is the access modifier of members declared in an interface?

Q.23Easy

What is the default access modifier for class members in Java if not explicitly specified?

Q.24Easy

Which keyword is used to prevent a class from being subclassed?

Q.25Easy

Can you instantiate an interface in Java?

Q.26Easy

What is the default access modifier for a class member in Java if no modifier is specified?

Q.27Easy

Which keyword is used to prevent a class from being subclassed in Java?