Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

a QUESTION 11 A lower bounded wildcard limits the type to the concrete class or

ID: 3582433 • Letter: A

Question

a

QUESTION 11

A lower bounded wildcard limits the type to the concrete class or a super type (parent) of that class.

True

False

1 points   

QUESTION 12

All variables in an interface are public final static, whether declared so or not.

True

False

1 points   

QUESTION 13

Given that Integer inherits from Number and ArrayList inherits from List, which hierarchy is correct?

List<Number> <--- ArrayList<Integer>

List<Object> <--- ArrayList<Integer>

List<Object> <--- ArrayList<Number>

List<Number> <--- ArrayList<Number>

2 points   

QUESTION 14

Given that usage of generics with Exception is restricted, which is acceptable usage?

class MyException<T> extends Throwable { /* */ }

class MyException<T> extends Exception { /* */ }

public void parse(File file) throws T { /* */ }

catch(T e) { /* */ }

2 points   

QUESTION 15

If a node is added to a second place in a Scene, the node is automatically and silently removed from its original location.

True

False

1 points   

QUESTION 16

If method A calls method B, and method B declares a checked exception, method A can do any of the following except __________ the exception.

catching

declaring

catching and re-throwing

overriding

2 points   

QUESTION 17

You can define a class, interface, or a method using generics, but they must be static.

True

False

1 points   

QUESTION 18

After using the bind() method to bind a target with a source, you cannot then use bind() to bind the source with the target.

True

False

1 points   

QUESTION 19

The order of components added into a container using Swing's FlowLayout is immaterial.

True

False

1 points   

QUESTION 20

To display a video in JavaFX, use the __________ class.

MediaView

MediaPlayer

Media

MediaDisplay

a.

List<Number> <--- ArrayList<Integer>

b.

List<Object> <--- ArrayList<Integer>

c.

List<Object> <--- ArrayList<Number>

d.

List<Number> <--- ArrayList<Number>

Explanation / Answer

11. True

12. True

13. a. List<Number> <--- ArrayList<Integer>

14. b. class MyException<T> extends Exception { /* */ }

15. False

16. c. catching and re-throwing

17. True

18. True

19. False

20. d. Media Display Class

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote