- Java 9 Tutorial
- Java 9 - Home
- Java 9 - Overview
- Java 9 - Environment Setup
- Java 9 - Module System
- Java 9 - REPL (JShell)
- Java 9 - Improved JavaDocs
- Java 9 - Multirelease JAR
- Java 9 - Collection Factory Methods
- Java 9 - Private Interface Methods
- Java 9 - Process API Improvements
- Java 9 - Stream API Improvements
- Try With Resources improvement
- Enhanced @Deprecated Annotation
- Inner Class Diamond Operator
- Optional Class Improvements
- Java 9 - Multiresolution Image API
- CompletableFuture API Improvements
- Java 9 - Miscellaneous Features
- java9 Useful Resources
- Java 9 - Questions and Answers
- Java 9 - Quick Guide
- Java 9 - Useful Resources
- Java 9 - Discussion
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.
Java 9 Mock Test I
Q 1 - Java 9 main goals are
B - To improve the overall security of the JDK and Java Implementations.
Answer : C
Explanation
Both of the above options are correct.
Q 2 - Java 9 main goals are
Answer : C
Explanation
Both of the above options are correct.
Q 3 - Which of the following is/are introduced in Java 9?
Answer : D
Explanation
All of the above are introduced in Java 9.
Q 4 - Which of the following is not introduced in Java 9?
Answer : C
Explanation
Lambda expressions were introduced in Java 8.
Q 5 - Which of the following is correct about Module System in Java 9?
A - A module is a self-describing collection of code and data and has a name to identify it.
B - JAR format updated as modular JAR, which contains module-info.class file in its root directory.
Answer : D
Explanation
All of the above are correct.
Q 6 - Which of the following is correct about Module System in Java 9?
A - A new optional phase,link time, is introduced.
B - Link time phase is in-between compile time and run time.
Answer : D
Explanation
All of the above are correct.
Q 7 - Which of the following is correct about Module System in Java 9?
B - JAR format updated as modular JAR, which contains module-info.class file in its root directory.
Answer : C
Explanation
Both of the above are correct.
Q 8 - What REPL stands for?
Answer : A
Explanation
REPL stands for Read-Eval-Print Loop.
Q 9 - Which of the following is correct?
A - JShell is introduced in Java 9.
Answer : D
Explanation
All of the above options are correct.
Q 10 - Which of the following is correct w.r.t Java Documentation?
A - Java documentation can be generated using javadoc tool.
B - Java currently generates documentation in html 4.0 format.
Answer : D
Explanation
All of the above options are correct.
Q 11 - Which of the following is correct w.r.t Multirelease jar?
Answer : C
Explanation
Both of the above options are correct.
Q 12 - Which of the following method is added to List in Java 9?
A - static
Answer : A
Explanation
static
Q 13 - Which of the following method is added to Set in Java 9?
A - static
Answer : A
Explanation
static
Q 14 - Which of the following method is added to Map in Java 9?
A - static
Answer : A
Explanation
static
Q 15 - Which of the following method is added to Map in Java 9?
A - static
Answer : A
Explanation
static
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 |