Analyzethefollowingcode:if (x < 100) && (x > 10)System.out.println("x is between 10 and 100");
A. Thestatementcompilesfine,buthasaruntimeerror.
B. Thestatementhascompileerrorsbecause(x<100)&(x>10)mustbeenclosedinsideparenthesesandtheprintln(…)statementmustbeputinsideablock.
C. Thestatementhascompileerrorsbecause(x<100)&(x>10)mustbeenclosedinsideparentheses.
D. Thestatementcompilesfine.