Java Programming MCQ - Basics
11. Default, public , protected, private are?
A. Access Modifier
B. Non-access Modifiers
C. Both A and B
D. It's variable
View Answer
Ans : A
Explanation: Access Modifiers : default, public , protected, private
12. jar stands for _____________.
A. Java Application Runner
B. Java Archive
C. Java Archive Runner
D. None of these
View Answer
Ans : B
Explanation: jar stands for Java Archive
13. Which of the following is not a keyword in Java.
A. transient
B. instanceof
C. emun
D. strictfp
View Answer
Ans : C
Explanation: Incorrect spelling of the word "enum",enum is a keyword in Java.
14. Which of the following is not a keyword in Java.
A. assert
B. boolean
C. abstract
D. finalize
View Answer
Ans : D
Explanation: Final class can't be inherited, final method can't be overridden and final variable value can't be changed. Finally is used to place important code, it will be executed whether exception is handled or not. Finalize is used to perform clean up processing just before object is garbage collected.
15. What is JRE?
A. JRE is a java based GUI application.
B. JRE is an implementation of the Java Virtual Machine which executes Java programs.
C. JRE is an application development framework.
D. None of the above
View Answer
Ans : B
Explanation: Java Runtime Environment is an implementation of the Java Virtual Machine which executes Java programs. It provides the minimum requirements for executing a Java application.
Also check :
Discussion