Top 250+ Solved Java Programming MCQ Questions Answer
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 numerical range of a char in Java?
a. -128 to 127
b. 0 to 256
c. 0 to 32767
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
Q. Which of these values can a boolean variable contain?
a. True & False
b. 0 & 1
c. Any integer value.
d. Both a & b
Q. Which operator is used to implement unsigned right shift of an integer?
a. <<
b. >>
c. <<<
d. >>>
Q. Which of these operators is used to allocate memory to array variable in Java?
a. malloc
b. alloc
c. new
d. new malloc
Q. Which of the following loops will execute the body of loop even when condition controlling the loop is initially false?
a. do-while
b. while
c. for
d. None of the mentioned