Immutable
classes can Mark for Review
be (1) Points
subclassed.
True or
false?
True
False (*)
Correct
True (*)
False
Correct
Correct
5. An interface can implement methods.
True or False? Mark for Review
(1) Points
True
False (*)
6. Wildcards
in Mark for Review
generics (1) Points
allows us
greater
control
on the
types
that can
be used.
True or
False?
True (*)
False
Correct
True (*)
False
Correct
True
False (*)
Correct
9. Which of the following would initialize a generic class "Cell" using a String
type? Mark for Review
I. Cell <String> cell = new Cell(); . (1) Points
II. Cell <String> cell = new Cell <String>(); .
III. Cell cell = new String;
I only
I and II (*)
II only
II and III
III only
Correct
True
False (*)
Correct
6. Wildcards
in Mark for Review
generics (1) Points
allows us
greater
control
on the
types
that can
be used.
True or
False?
True (*)
False
Correct
True (*)
False
Correct
True
False (*)
Correct
9. Which of the following would initialize a generic class "Cell" using a String
type? Mark for Review
I. Cell <String> cell = new Cell(); . (1) Points
II. Cell <String> cell = new Cell <String>(); .
III. Cell cell = new String;
I only
I and II (*)
II only
II and III
III only
Correct
True
False (*)
Correct