Java MCQ Questions - Java Basics

This section focuses on the "Basics" of Java programming. These Multiple Choice Questions (MCQ) should be practiced to improve the Java programming skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.

1. Java Source Code is compiled into ______________.

A. .Obj
B. Source Code
C. Bytecode
D. .Exe

View Answer


2. Enums were introduced in?

A. Java 4.0
B. Java 8.0
C. Java 5.0
D. Java 6.0

View Answer


3. Default, public , protected, private are?

A. Access Modifier
B. Non-access Modifiers
C. Both A and B
D. It's variable

View Answer


4. Which of the following is used to interpret and execute Java Applet Classes hosted by HTML.

A. appletviewer
B. appletwatcher
C. appletshow
D. appletscreen

View Answer


5. HTML based Java Documentary help can be accessed using ______________.

A. javahelp
B. javamanual
C. javadoc
D. None of these

View Answer


6. jar stands for _____________.

A. Java Application Runner
B. Java Archive
C. Java Archive Runner
D. None of these

View Answer


7. Which of the following is not a keyword in Java.

A. transient
B. instanceof
C. emun
D. strictfp

View Answer


8. Which of the following is not a keyword in Java.

A. assert
B. boolean
C. abstract
D. finalize

View Answer


9. Single line comment starts with _________ in Java.

A. /**
B. //
C. /*
D. None of these

View Answer


10. 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


11. How to compile java code in command prompt?

A. javac filename.java
B. java filename.java
C. javac filename
D. java filename

View Answer


12. How to run java program in command prompt?

A. javac filename.java
B. java filename.java
C. javac filename
D. java filename

View Answer


13. Java is case sensitive?

A. True
B. False
C. Depends On Complier
D. May be true or false

View Answer


14. What is true in Java?

A. For all class names the first letter should be in Upper Case.
B. All method names should start with a Lower Case letter.
C. Name of the program file should exactly match the class name.
D. All of the above

View Answer


15. All Java components require names. Names used for classes, variables, and methods are called?

A. Variables
B. identifiers
C. Access Modifiers
D. Java Modifiers

View Answer





Also check :

Discussion



* You must be logged in to add comment.

vaishanvi tambe
Q_5 is wrong ans

Letsfindcourse
Thanks for reporting the incorrect ans our team will correct that soon.