Home

Java Programming MCQ Question with Answer

Java Programming MCQ with detailed explanation for interview, entrance and competitive exams. Explanation are given for understanding.

Download Java Programming MCQ Question Answer PDF

Question No : 50
The modulus operator (%) can be used only with Integer operands.

True
False

Question No : 51
Declarations can appear anywhere in the body of a Java method.

True
False

Question No : 52
All the bitwise operators have the same level of precedence in Java.

True
False

Question No : 53
When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.

True
False

Question No : 54
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.

True
False

Question No : 55
In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean expressions are not always evaluated.

True
False

Question No : 56
The default case is always required in the switch selection structure.

True
False