Java Ch 8 Quiz

10 Questions | Total Attempts: 106

SettingsSettingsSettings
Please wait...
Java Quizzes & Trivia

Questions and Answers
  • 1. 
    True or False: Constructors do not have a type.
    • A. 

      True

    • B. 

      False

  • 2. 
    The name of a finalizer is ____.
  • 3. 
    True or False: Constructors do not have any parameters.
    • A. 

      True

    • B. 

      False

  • 4. 
    True or False: A copy constructor is initialized using an existing object.
    • A. 

      True

    • B. 

      False

  • 5. 
    public, private, and protected are all ____ that alter the behavior of a class.
  • 6. 
    Java implicitly uses the reference called ____ to refer to both the instance variables and the methods of a class.
  • 7. 
    True or False: If a class is not declared public it can only be used within the package it is located in.
    • A. 

      True

    • B. 

      False

  • 8. 
    ____ classes are often used to handle events.
  • 9. 
    True or False: One feature of ADTs is information hiding.
    • A. 

      True

    • B. 

      False

  • 10. 
    A(n) ____ inner class definition has no name
Back to Top Back to top