Exam 20: Generic Classes and Methods: a Deeper Look

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

Class Number is ________ of both Integer and Double.

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

D

Which statement is false?

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

B

Which of the following statements is false?

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

C

When compiling a generic class, the __________ option should be used to view the unchecked warning message.

(Multiple Choice)
4.9/5
(93)

A wildcard type argument is denoted by a(n) __________.

(Multiple Choice)
4.7/5
(90)

One generic Stack class could be the basis for creating many Stack classes,g., Stack<Double>, Stack<Integer> and Stack<Employee>. These classes are known as __________.

(Multiple Choice)
4.7/5
(78)

__________ is the default upper bound of a type parameter.

(Multiple Choice)
4.8/5
(72)

All generic method declarations have a type parameter section delimited by __________.

(Multiple Choice)
4.9/5
(77)

Generics provide __________ that allows programmers to catch invalid types at compile time.

(Multiple Choice)
5.0/5
(75)

Which statement is false?

(Multiple Choice)
4.9/5
(89)

__________ enable programmers to specify, with a single method declaration, a set of related methods.

(Multiple Choice)
4.9/5
(79)

Which of the following statements is true?

(Multiple Choice)
4.7/5
(80)

When the compiler translates a generic method into Java bytecodes, it uses __________ to replace the type parameters with actual types.

(Multiple Choice)
4.8/5
(73)
close modal

Filters

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