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
(85)
Correct Answer:
Verified

D

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

Free
(Multiple Choice)
4.9/5
(82)
Correct Answer:
Verified

A

Which of the following statements is false?

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

D

Static class variables:

(Multiple Choice)
4.8/5
(81)

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

(Multiple Choice)
4.8/5
(78)

Constructors:

(Multiple Choice)
4.7/5
(69)

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

(Multiple Choice)
4.7/5
(87)

Which syntax imports all static members of class Math?

(Multiple Choice)
4.7/5
(88)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(88)

A constructor cannot:

(Multiple Choice)
4.9/5
(94)

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

(Multiple Choice)
4.9/5
(75)

Which statement is false?

(Multiple Choice)
4.7/5
(75)

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

(Multiple Choice)
4.9/5
(76)

Instance variables declared final do not or cannot:

(Multiple Choice)
4.8/5
(89)

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
(78)

Which statement is false?

(Multiple Choice)
4.8/5
(82)

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

(Multiple Choice)
4.9/5
(83)

Using public set methods helps provide data integrity if:

(Multiple Choice)
4.8/5
(74)

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

(Multiple Choice)
5.0/5
(90)

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

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

Filters

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