Java Ch. 6

The flashcards below were created by user senator77 on FreezingBlue Flashcards.

  1. A static class member belongs to the class,
    not objects instantiated from the class.
  2. When a field is declared static, there will be only one copy of the field in memory, regardless of the number of instances:
    of the class that might exits.
  3. When a class contains a static method, it isn't necessary for an instance of the class to be created:
    to execute the method.
  4. Declaring an object static, it belongs to the class and may be called without any instances of:
    the class being in existance.
  5. Two or more method in a class may have the same name as long as their:
    signatures are different.
  6. In method-overloading, multiple methods have the same name but:
    use different parameters.
  7. The process of matching a method call with the correct method is known as:
  8. A method's signature consists of the method's name and the data types of the method's parameters:
    in the order that they appear.
  9. More than one constructor may be defined for a:
  10. The method that returns a string that represents that state of an object:
    the toString
  11. The constructor that accpets an object of the same class as an argument is:
    a copy constructor.
  12. When an instance of a class is a field in another class an:
    aggregation occurs.
  13. Making an instance of one class a field in another class is called:
    object aggregation.
  14. When you make a copy of the aggregate object and make copies of the objects it references is known as:
    a deep copy.
  15. When you make a copy of an aggregate object but only make a reference copy of the objects is references is known as:
    a shallow copy.
  16. An object that does not provide a way to change its contents is an:
    immutable object.
  17. This type of method cannot access any nonstatic member variables in its own class.
    static method.
  18. The process of matching a method call with the correct method is known as:
  19. If you write this method for a class, Java will automatically call it any time you concatenate an object of the class with a string.
    toString method.
  20. This is the name of a reference variable that is always available to an instance method and refers to the object that is calling the method.
    this reference.
  21. Assuming the following declarations exits:
    enum Seasons { SPRING, WINTER, SUMMER, FALL }
    what is the fully qualified name of the FALL constant?
  22. A class that is defined inside of another class is called an:
    inner class.
  23. If a class has this method, it is called automatically just before an instance of the class is destroyed by the JVM.
    finalize method.
  24. A static member method may refer to nonstatic member variables of the same class at any time (true/false).
  25. A class may not have more than one constructor (true/false).
  26. A method cannot return a reference to an object (true/false).
  27. You can declare an enumerated data type inside a method (true/false).
  28. enum constants have a toString method (true/false).
Card Set
Java Ch. 6
Java Ch. 6
Show Answers