Home > Articles > Programming > Java

  • Print
  • + Share This
This chapter is from the book


Review today’s material by taking this three-question quiz. Answers are at the end of the book.


  1. Which operator do you use to call an object’s constructor and create a new object?

    1. +
    2. new
    3. instanceof
  2. What kind of methods apply to all objects of a class rather than an individual object?

    1. Universal methods
    2. Instance methods
    3. Class methods
  3. If you have a program with objects named obj1 and obj2, what happens when you use the statement obj2 = obj1?

    1. The instance variables in obj2 are given the same values as obj1.
    2. obj2 and obj1 are considered to be the same object.
    3. Neither A nor B.
  • + Share This
  • 🔖 Save To Your Account