D286 Java Fundamentals - Set 4 - 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 is inheritance used to achieve in object-oriented design?

Question 2: What is an 'is-a' relationship?

Question 3: When should composition be used instead of inheritance?

Question 4: Can a subclass access private members of its superclass directly?

Question 5: What happens when a subclass overrides a method and calls super.method()?

Question 6: Can a final method be overridden in a subclass?

Question 7: What is an abstract method?

Question 8: Can a class containing an abstract method be instantiated?

Question 9: What is the benefit of declaring a variable using a superclass type?

Question 10: In polymorphism, which method implementation executes at runtime?

Question 11: What is the Object class method used to compare logical equality?

Question 12: What contract must hashCode() satisfy?

Question 13: What is a marker interface?

Question 14: What is a functional interface?

Question 15: What is a lambda expression used for in Java?

Question 16: What does the Iterator interface provide?

Question 17: Why should you use an Iterator's remove() method rather than modifying a collection during a for-each loop?

Question 18: What is the difference between ArrayList and LinkedList?

Question 19: What does the Collections.sort() method require of the elements?

Question 20: What is the difference between Comparable and Comparator?


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