Exam 8: Classes and Objects: a Deeper Look

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

Having a this reference allows:

Free
(Multiple Choice)
4.7/5
(39)
Correct Answer:
Verified

D

Which method returns an array of the enum's constants?

Free
(Multiple Choice)
4.8/5
(33)
Correct Answer:
Verified

A

Which of the following statements is false?

Free
(Multiple Choice)
4.7/5
(37)
Correct Answer:
Verified

D

Static class variables:

(Multiple Choice)
4.8/5
(28)

When implementing a method, use the class's set and get methods to access the class's ________ data.

(Multiple Choice)
4.8/5
(38)

Constructors:

(Multiple Choice)
4.7/5
(31)

Set methods are also commonly called ________ methods and get methods are also commonly called ________ methods.

(Multiple Choice)
4.7/5
(40)

Which syntax imports all static members of class Math?

(Multiple Choice)
4.8/5
(41)

Which of the following statements is false?

(Multiple Choice)
4.7/5
(41)

A constructor cannot:

(Multiple Choice)
4.7/5
(39)

A programmer-defined constructor that has no arguments is called a(n) ________.

(Multiple Choice)
4.9/5
(32)

Which statement is false?

(Multiple Choice)
4.8/5
(37)

Composition is sometimes referred to as a(n) ________.

(Multiple Choice)
4.8/5
(27)

Instance variables declared final do not or cannot:

(Multiple Choice)
4.8/5
(43)

The_________ of a class are also called the public services or the public interface that the class provides to its clients.

(Multiple Choice)
4.7/5
(38)

Which statement is false?

(Multiple Choice)
4.8/5
(35)

A final field should also be declared ________ if it is initialized in its declaration.

(Multiple Choice)
4.9/5
(36)

Using public set methods helps provide data integrity if:

(Multiple Choice)
4.7/5
(31)

BigDecimal gives you control over how values are rounded. By default:

(Multiple Choice)
5.0/5
(43)

The static method ________ of class String returns a formatted String.

(Multiple Choice)
4.8/5
(24)
Showing 1 - 20 of 28
close modal

Filters

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