Professional Documents
Culture Documents
Mark for
Review
(1) Points
When you want to be able to create any number of objects of that class.
When you already know all the possibilities for objects of that class. (*)
m
er as
[Correct] Correct
co
eH w
2. < ? extends Animal > would only allow classes or subclasses of Animal
o.
to be used. Mark for Review
(1) Points
rs e
ou urc
True (*)
o
aC s
False
vi y re
[Correct] Correct
ed d
ar stu
This study source was downloaded by 100000756817934 from CourseHero.com on 04-16-2021 00:21:44 GMT -05:00
https://www.coursehero.com/file/13119097/JP-2/
[Correct] Correct
True (*)
False
[Correct] Correct
m
er as
co
5. An abstract class can be instantiated. Mark for Review
eH w
(1) Points
o.
True
rs e
ou urc
False (*)
o
aC s
vi y re
When you want to be able to create any number of objects of that class.
Th
When you already know all the possibilities for objects of that class. (*)
This study source was downloaded by 100000756817934 from CourseHero.com on 04-16-2021 00:21:44 GMT -05:00
https://www.coursehero.com/file/13119097/JP-2/
[Correct] Correct
2. < ? extends Animal > would only allow classes or subclasses of Animal
to be used. Mark for Review
(1) Points
True (*)
False
[Correct] Correct
m
er as
class Telephones whose generic type is Cellular? Mark for Review
(1) Points
co
eH w
Telephones cell = new Telephones(Cellular c);
o.
rs e
ou urc
Telephones(Cellular) cell = new Telephones(Cellular);
[Correct] Correct
is
(1) Points
True (*)
sh
False
[Correct] Correct
This study source was downloaded by 100000756817934 from CourseHero.com on 04-16-2021 00:21:44 GMT -05:00
https://www.coursehero.com/file/13119097/JP-2/
5. An abstract class can be instantiated. Mark for Review
(1) Points
True
False (*)
m
er as
as which of the following? Mark for Review
(1) Points
co
eH w
A public static method.
o.
rs e
ou urc
A private final method.
[Correct] Correct
is
(1) Points
True (*)
sh
False
This study source was downloaded by 100000756817934 from CourseHero.com on 04-16-2021 00:21:44 GMT -05:00
https://www.coursehero.com/file/13119097/JP-2/
8. Virtual method invocation is: Mark for Review
(1) Points
[Correct] Correct
m
er as
co
9. Which one of the following would allow you to define the abstract class
eH w
Animal. Mark for Review
(1) Points
o.
rs e
ou urc
public abstract Animal
public Animal
ed d
ar stu
[Correct] Correct
is
10. The state of an object differentiates it from other objects of the same
class. Mark for Review
Th
(1) Points
True (*)
sh
False
[Correct] Correct
This study source was downloaded by 100000756817934 from CourseHero.com on 04-16-2021 00:21:44 GMT -05:00
https://www.coursehero.com/file/13119097/JP-2/
11. Which one of the following would allow you to define an interface for
Animal. Mark for Review
(1) Points
m
er as
co
eH w
[Correct] Correct
o.
12.
rs e
A method with default access can be subclassed.
ou urc
True or false? Mark for Review
(1) Points
o
True
aC s
vi y re
False (*)
ed d
(1) Points
Th
True
sh
False (*)
[Correct] Correct
This study source was downloaded by 100000756817934 from CourseHero.com on 04-16-2021 00:21:44 GMT -05:00
https://www.coursehero.com/file/13119097/JP-2/
(1) Points
[Correct] Correct
m
er as
15. In general, classes can be made immutable by placing a final key word
before the class keyword.
co
True or false? Mark for Review
eH w
(1) Points
o.
True
rs e
ou urc
False (*)
o
aC s
vi y re
This study source was downloaded by 100000756817934 from CourseHero.com on 04-16-2021 00:21:44 GMT -05:00
https://www.coursehero.com/file/13119097/JP-2/
Powered by TCPDF (www.tcpdf.org)