

MCQOPTIONS
Saved Bookmarks
This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your Java Programming knowledge and support exam preparation. Choose a topic below to get started.
1. |
What is the output of this program?
|
A. | Hello Mania |
B. | Mania |
C. | Interview |
D. | Hello Interview Mania |
E. | None of these |
Answer» E. None of these | |
2. |
What is the output of this program?
|
A. | IntervieM |
B. | Interview |
C. | IntervieW |
D. | Inter |
E. | None of these |
Answer» D. Inter | |
3. |
What is the output of this program?
|
A. | 7 9 |
B. | 5 7 9 |
C. | 7 5 9 |
D. | 9 7 5 |
E. | None of these |
Answer» C. 7 5 9 | |
4. |
What is the output of this program?
|
A. | Exception |
B. | Program prints all the constructors of java.awt.Dimension package. |
C. | program prints all the methods and data member of java.awt.Dimension package. |
D. | Program prints all the data members of java.awt.Dimension package. |
E. | Program prints all the methods of java.awt.Dimension package. |
Answer» F. | |
5. |
What is the output of this program?
|
A. | Program prints all the methods of java.awt.Dimension package |
B. | Program prints all the constructors of java.awt.Dimension package |
C. | program prints all the methods and data member of java.awt.Dimension package |
D. | Program prints all the data members of java.awt.Dimension package |
E. | None of these |
Answer» E. None of these | |
6. |
What is the output of this program?
|
A. | Program prints all the possible constructors of class Class |
B. | Program prints Exception |
C. | Program prints all the constructors of java.awt.Dimension package |
D. | Runtime Error |
E. | Compilation Error |
Answer» D. Runtime Error | |
7. |
Which of the following is the correct way of importing an entire package pkg ? |
A. | Import pkg. |
B. | import pkg. |
C. | Import pkg.* |
D. | import pkg.* |
E. | None of these |
Answer» E. None of these | |