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

D

Which statement is false?

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

B

Which of the following statements is false?

Free
(Multiple Choice)
4.9/5
(36)
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
(44)

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

(Multiple Choice)
4.8/5
(38)

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.8/5
(36)

__________ is the default upper bound of a type parameter.

(Multiple Choice)
4.8/5
(34)

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

(Multiple Choice)
4.9/5
(41)

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

(Multiple Choice)
4.9/5
(37)

Which statement is false?

(Multiple Choice)
4.9/5
(36)

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

(Multiple Choice)
4.9/5
(38)

Which of the following statements is true?

(Multiple Choice)
4.8/5
(31)

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
(32)
close modal

Filters

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