Home / Programming Questions / JAVA MCQs / Page 7

JAVA MCQs with answers Page - 7

Dear candidates you will find MCQ questions of JAVA here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question

Q. Who is considered as the creator of JAVA ?

(A) Dennis Richie
(B) Ken Thompson
(C) James Gosling
(D) Bjarne Stroupstrup

Q. Which of the following statements about the Java language is true?

(A) Java supports only Procedural Oriented Programming approach
(B) Both Procedural and Object Oriented Programming are supported in Java
(C) Java supports only Object Oriented Programming approach
(D) None of the Above

Q. JRE stands for

(A) Java Realtime Environment
(B) Java Rapid Enterprise
(C) Java Runtime Environment
(D) None of the above

Q. Java source files are compiled and converted to

(A) Object code
(B) machine code
(C) Bytecode
(D) executable file

Q. JVM is ___________for bytecode.

(A) a compiler
(B) an interpreter
(C) assembler
(D) none of the above

Q. What is the size of int data type in java?

(A) 1 bytes
(B) 2 bytes
(C) 4 bytes
(D) 8 bytes

Q. Which is a valid float literal?

(A) 1.23
(B) 2
(C) 1.23d
(D) 1.23f

Q. What is the numerical range of a char in Java?

(A) -128 to 127
(B) 0 to 256
(C) 0 to 32767
(D) 0 to 65535

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.