Java & OO Intermediate - Part 2

Print the objectives

Take the exam   Take a beta test

This exam is bound to the course Java & OO Intermediate. Every question of this exam has a corresponding piece of theory covered in the course.

The first chapters of the course are covered by another exam: part 1.

These two exams together will grant you an orange belt. They replace the previous exams "Java SE Intermed" and "OO Intermed".

  Released  Beta  Frozen  

Inheritance  2 questions

  • Given a class hierarchy, identify parents and children
  • Use the correct Java syntax for extending a class.
  • Write expressions that upcast or downcast a reference (no tricks, no arrays).
5 49 14

Object  2 questions

  • Know that java.lang.Object is the ultimate ancestor.
  • Identify methods inherited from the Object class.
  • Write correct implementation of the toString() method.
4 22 9

Overriding  2 questions

  • Explain the overriding mechanism and late binding
  • From given code including a late binding call, predict the method that will be called.
  • Identify correct overriding syntax, distinguish between the overriding and overloading mechanism.
3 50 8

Abstract  2 questions

  • Write code that declares abstract classes and methods
  • Understand that an abstract class cannot be instantiated
  • Know that once a class contains an abstract method, it must be marked as abstract.
7 28 10

Interfaces  2 questions

  • Write code that declares an interface and its containing methods.
  • Make a class implement an interface correctly.
  • Explain the particular nature of attributes declared in interfaces.
  • Identify differences between implementing an interface and extending a class.
  • Know that all methods of an interface are public.

6 49 6

instanceof  2 questions

  • Write code that uses the instanceof operator for run-time type identification.
  • Identify correct operands of the instanceof operator
17 2 12

Access modifiers  2 questions

  • From a given situation, predict if a method can access a class attributes/methods, whatever of the 4 access modifiers are applied on these attributes/methods.
  • Select the appropriate access modifier to enable a class to access or not access an attribute/method.
7 19 4

Overloading  2 questions

  • Implement constructor an method overloading correctly.
  • Know that two methods cannot differ only on the return type.
2 13 14

Annotation  2 questions

  • Use the @Override annotation
2 23 9

Exam information

  • 27 minutes
  • 18 questions (394)
  • 70% required
  • +6 √
  • - 12  points
  • 5 day delay
  • status: released

Top contributors