10 Generics Flashcards

1
Q

It associate one or more non-specified Java types upon creation.

A

Generic types (or generics)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

It represents an unknown type and is specified by the question mark.

A

wildcard argument

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the two (2) categories under wildcards?

A

unbounded wildcard and bounded wildcard

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

It can be used to represent any type.

A

<?> or unbounded wildcard

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

It restricts the unknown type to be a specific type or a subtype of that type.

A

upper bounded wildcard

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

It restricts the unknown type to be a specific type or super type of that type.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly