Home / Programming Questions / JAVA MCQs / Page 8

JAVA MCQs with answers Page - 8

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

R

Ram Sharma • 178.09K Points
Coach

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

R

Ram Sharma • 178.09K Points
Coach

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

(A) True & False
(B) 0 & 1
(C) Any integer value.
(D) Both a & b

R

Ram Sharma • 178.09K Points
Coach

Q. Which one of the following is a valid identifier in java?

(A) x1
(B) 1x
(C) $x
(D) x 1

R

Ram Sharma • 178.09K Points
Coach

Q. Which operator is used to implement unsigned right shift of an integer?

(A) <<
(B) >>
(C) <<<
(D) >>>

R

Ram Sharma • 178.09K Points
Coach

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

(A) goto
(B) jump
(C) break
(D) if

R

Ram Sharma • 178.09K Points
Coach

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

(A) malloc
(B) alloc
(C) new
(D) new malloc

R

Ram Sharma • 178.09K Points
Coach

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

R

Ram Sharma • 178.09K Points
Coach

Q. Which of these is necessary condition for automatic type conversion in Java?

(A) The destination type is smaller than source type.
(B) The destination type is larger than source type.
(C) The destination type can be larger or smaller than source type.
(D) None of the mentioned

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.