Java 9 Mock Test



This section presents you various set of Mock Tests related to Java 9. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself.

Questions and Answers

Java 9 Mock Test I

Q 3 - Which of the following is/are introduced in Java 9?

A - Module System

B - JShell

C - Multiresolution Image API

D - All of the above

Answer : D

Explanation

All of the above are introduced in Java 9.

Answer : C

Explanation

Lambda expressions were introduced in Java 8.

Answer : A

Explanation

REPL stands for Read-Eval-Print Loop.

Answer : A

Explanation

static List of(E e1, E e2, E e3) and its overloaded methods are added to List interface.

Answer : A

Explanation

static Set of(E e1, E e2, E e3) and its overloaded methods are added to Set interface.

Answer : A

Explanation

static Map of(K k1, V v1, K k2, V v2, K k3, V v3) and its overloaded methods are added to Map interface.

Answer : A

Explanation

static Map ofEntries(Map.Entry<? extends K,? extends V>... entries) method is present in Map interface.

Answer Sheet

Question Number Answer Key
1 C
2 C
3 D
4 C
5 D
6 D
7 C
8 A
9 D
10 D
11 C
12 A
13 A
14 A
15 A
java9_questions_answers.htm
Advertisements