Exam 6: A Second Look at Classes and Objects

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

You cannot use the fully-qualified name of an enum constant for

(Multiple Choice)
4.8/5
(42)

To get the name of a calling enum constant,

(Multiple Choice)
4.9/5
(34)

A class's static methods do not operate on the fields that belong to any instance of the class.

(True/False)
4.8/5
(41)

When the this variable is used to call a constructor

(Multiple Choice)
5.0/5
(40)

When you write an enumerated type declaration, you

(Multiple Choice)
4.9/5
(29)

The names of the enum constants in an enumerated data type must be enclosed in quotation marks.

(True/False)
4.8/5
(25)

The JVM periodically performs this process to remove unreferenced objects from memory.

(Multiple Choice)
4.9/5
(43)

When a field is declared static, there will be

(Multiple Choice)
4.9/5
(33)

By default, a reference variable that is an instance field is initialized to the value

(Multiple Choice)
5.0/5
(34)

If the following is from the method section of a UML diagram, which of the following statements is true? + equals(object2:Stock) : boolean

(Multiple Choice)
4.9/5
(38)

Assuming the following declaration exists: Enum Tree { OAK, MAPLE, PINE } What will the following code display? System.out.println(Tree.OAK);

(Multiple Choice)
4.8/5
(40)

Overloading is

(Multiple Choice)
4.8/5
(44)

The key word this is the name of a reference variable that an object can use to refer to itself.

(True/False)
4.8/5
(36)

A declaration for an enumerated type begins with this key word.

(Multiple Choice)
4.8/5
(40)

An enumerated data type is actually a special type of class.

(True/False)
4.8/5
(37)

If you write a toString method for a class, Java will automatically call the method any time you concatenate an object of the class with a string.

(True/False)
4.9/5
(34)

A static field is created by placing the key word static

(Multiple Choice)
5.0/5
(36)

You may use this to compare two enum data values.

(Multiple Choice)
4.9/5
(33)

CRC stands for

(Multiple Choice)
4.8/5
(35)

If a class has a method named finalize, it is called automatically just before an instance of the class is destroyed by the garbage collector.

(True/False)
4.6/5
(28)
Showing 21 - 40 of 40
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)