D286 Java Fundamentals - Set 2 - Part 1

Test your knowledge of technical writing concepts with these practice questions. Each question includes detailed explanations to help you understand the correct answers.

Question 1: What are the four fundamental principles of object-oriented programming?

Question 2: Which keyword is used for inheritance in Java?

Question 3: How many classes can a Java class directly extend?

Question 4: Which class is the implicit superclass of every Java class?

Question 5: What is method overriding?

Question 6: What is the purpose of the @Override annotation?

Question 7: What does the super keyword do?

Question 8: What is polymorphism in Java?

Question 9: What is dynamic method dispatch?

Question 10: What is an abstract class?

Question 11: Can an abstract class contain concrete (implemented) methods?

Question 12: What is an interface in Java?

Question 13: How many interfaces can a Java class implement?

Question 14: What is the key difference between an abstract class and an interface?

Question 15: What is a default method in an interface?

Question 16: What does it mean that a variable is declared of an interface type?

Question 17: What is composition in object-oriented design?

Question 18: Why is composition often preferred over inheritance?

Question 19: What does the toString() method do by default?

Question 20: Why should equals() and hashCode() be overridden together?


Complete the Captcha to view next question set.


Quick View

Need Guaranteed Results?

Our exam support service guarantees you'll pass your OA on the first attempt. Pay only after you pass!

Get Exam Support