Top 250+ Solved Java Programming MCQ Questions Answer

From 1 to 15 of 285

Q. Who is considered as the creator of JAVA ?

a. Dennis Richie

b. Ken Thompson

c. James Gosling

d. Bjarne Stroupstrup

  • c. James Gosling

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

  • c. Java supports only Object Oriented Programming approach

Q. JRE stands for

a. Java Realtime Environment

b. Java Rapid Enterprise

c. Java Runtime Environment

d. None of the above

  • c. Java Runtime Environment

Q. Java source files are compiled and converted to

a. Object code

b. machine code

c. Bytecode

d. executable file

  • c. Bytecode

Q. JVM is ___________for bytecode.

a. a compiler

b. an interpreter

c. assembler

d. none of the above

  • b. an interpreter

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

a. 1 bytes

b. 2 bytes

c. 4 bytes

d. 8 bytes

  • c. 4 bytes

Q. Which is a valid float literal?

a. 1.23

b. 2

c. 1.23d

d. 1.23f

  • 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

  • d. 0 to 65535

Q. Which of these coding types is used for data type char in Java?

a. ASCII

b. ISO-LATIN-1

c. UNICODE

d. None of the mentioned

  • c. UNICODE

Q. Which of these values can a boolean variable contain?

a. True & False

b. 0 & 1

c. Any integer value.

d. Both a & b

  • a. True & False

Q. Which one of the following is a jump statement in java?

a. goto

b. jump

c. break

d. if

  • c. break

Q. Which of these operators is used to allocate memory to array variable in Java?

a. malloc

b. alloc

c. new

d. new malloc

  • c. new
Subscribe Now

Get All Updates & News