Modern Java Versions Specifics Flashcards

1
Q

What is a parameterized or generic type

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

Can we use parameterized types in exception handling

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

What is Autoboxing and what are its advantages/pitfalls

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

What is a wildcard parameterized type

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

Problems Enum type solves (comparing to “public static int” enum pattern)

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

Can we add something to List<?>

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

What is method reference (Java 8)

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

What is default metod (Java 8)

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

What is stream API (java 8)

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

What is Lambda expression (Java 8)

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

What are Annotations and which predefined by the language specification does one know (@Deprecated, @Override, @SuppressWarnings)

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

How to create custom annotation? What is retention type?

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

How would you create your own annotation with a specific retention policy (e.g. Runtime) behavior

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

What happens with lambda after compile time?

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

What are the new features of Java 9?

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