Exam 8: Classes and Objects: a Deeper Look

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

Which of the following statements is true?

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

A

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

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

B

Having a this reference allows:

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

D

Which statement is false?

(Multiple Choice)
4.9/5
(36)

When must a program explicitly use the this reference?

(Multiple Choice)
4.9/5
(40)

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

(Multiple Choice)
4.8/5
(33)

A constructor cannot:

(Multiple Choice)
4.9/5
(31)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(44)

When no access modifier is specified for a method or variable,the method or variable:

(Multiple Choice)
4.8/5
(33)

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

(Multiple Choice)
4.8/5
(36)

Static class variables:

(Multiple Choice)
4.9/5
(33)

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

(Multiple Choice)
4.7/5
(36)

Which statement is false?

(Multiple Choice)
4.9/5
(36)

What happens when this is used in a constructor's body to call another constructor of the same class if that call is not the first statement in the constructor?

(Multiple Choice)
4.9/5
(29)

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

(Multiple Choice)
4.8/5
(31)

Which statement is false?

(Multiple Choice)
4.7/5
(34)

Which of the following is false?

(Multiple Choice)
4.8/5
(37)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(30)

Instance variables declared final do not or cannot:

(Multiple Choice)
4.9/5
(36)

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

(Multiple Choice)
5.0/5
(28)
Showing 1 - 20 of 27
close modal

Filters

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