Java MCQs

Java MCQs: Beginner and Advance Java MCQs

Java MCQs | Online Java MCQs 

Here you find all types of JAVA MCQs. From beginner to intermediate and advanced levels. Mixed Java multiple-choice questions for exams and job interviews. Basic Java MCQs. Experienced Java MCQ questions. Java CS exam MCQ.

 

 

1- Who developed/invented the Java language?

(A) M. P Java

(B) Charel Babbage

(C) Blais Pascal

(D) James Gosling

 

2- Which one of these is not a feature in the Java language?

(A) Exception Handling

(B) Binding between objects

(C) Bytecode is executed by JVM

(D) Applet

 

3- What does multiple inheritance in Java mean?

(A) When many classes inherit from one super class

(B) When one class inherits from more super classes

(C) More classes inherit from more super classes

(D) None of the above

 

4- Which one of these is not a keyword in Java?

(A) int

(B) then

(C) break

(D) instanceof

 

5- The operator ‘&’ returns what?

(A) Float

(B) Double 

(C) Boolean

(D) Character

 

Java MCQs

 

6- In which year Java was first released?

(A) 1995

(B) 1996

(C) 1992

(D) 1990

 

7- Which method returns the name of the class as a string?

(A) toString()

(B) Show()

(C) getClass()

(D) getName()

 

8- Among these which has the highest precedence?

(A) *

(B) —

(C) ()

(D) ++

 

9- What is bytecode?

(A) code generated by a JVM

(B) It is the name of the Source File of Java

(C) code written in instance methods

(D) code that a Java Compiler generates

 

10- A random Java class found in which package?

(A) java.util package

(B) java.awt package

(C) java.io package

(D) java.lang package

 

ANSWERS: Java MCQs

1- (D) James Gosling

2- (C) Bytecode is executed by JVM

3- (B) When one class inherits from more super classes

4- (B) then

5- (D) Character

6- (A) 1995

7- (D) getName()

8- (C) ()

9- (D) code that a Java Compiler generates

10- (A) java.util package

 

           Read More

 

Leave a Comment

Your email address will not be published. Required fields are marked *