

MCQOPTIONS
Saved Bookmarks
This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your Java knowledge and support exam preparation. Choose a topic below to get started.
1. |
1234? |
A. | 12345A |
B. | 12345B |
C. | Compilation Error |
Answer» B. 12345B | |
2. |
Which of these packages contain all the Java’s built in exceptions?$ |
A. | java.io |
B. | java.util |
C. | java.lang |
D. | java.net |
Answer» D. java.net | |
3. |
Which of these exceptions will be thrown if we declare an array with negative size? |
A. | IllegalArrayException |
B. | IllegalArraySizeExeption |
C. | NegativeArrayException |
D. | NegativeArraySizeExeption |
Answer» E. | |
4. |
Which of these exceptions handles the situations when an illegal argument is used to invoke a method? |
A. | IllegalException |
B. | Argument Exception |
C. | IllegalArgumentException |
D. | IllegalMethodArgumentExcepetion |
Answer» D. IllegalMethodArgumentExcepetion | |