Java Object-Oriented Programming Awareness (Entry Level)

  • 20m
  • 20 questions
The Java Object-Oriented Programming Awareness benchmark measures your understanding of how classes can be used to model real-world entities, how member variables represent the state of those entities, and how member functions represent the behavior of those entities. A learner who scores high on this benchmark demonstrates that they have the skills to recognize the basics of Object-Oriented Programming in Java.

Topics covered

  • define a class and instantiate an object of that class in Java
  • define and invoke constructors in classes to correctly initialize member variables
  • define and invoke getter and setter methods to access private member variables of a class from outside that class
  • define an exception and recognize how it disrupts program execution
  • describe and implement the catch-or-specify restriction
  • enumerate differences between checked exceptions, runtime exceptions, and errors
  • enumerate the important built-in exception classes in Java
  • identify advantages and applications of inheritance
  • identify advantages and applications of polymorphism
  • identify differences between IO-related exceptions and other commonly encountered exceptions
  • print out the details of an object to the system console
  • recognize how exceptions such as NullPointerException, NumberFormatException, and IndexOutOfBoundsException occur in code
  • recognize how in single inheritance, every object of the derived class is an object of the base class, but not every object of the base class is an object of the derived class
  • recognize how objects of derived classes will have independent copies of member variables even from the derived class
  • recognize how the JRE searches for an exception handler for an exception
  • recognize how the methods derived from java.lang.Object work
  • recognize how to upcast and downcast and how downcasting can sometimes be dangerous
  • recognize how you can create one base class with multiple derived classes
  • recognize what classes and objects are
  • recognize what member variables, static member variables, and member functions are