A Java basics self-check tests value types, expression results, array bounds and loop termination.
Review the contracts
Review primitive types, numeric promotion, conditions and loops before answering.
Choose and explain an answer
Predict the result before choosing an option. Track the declared type and valid index range; the intended business result cannot change the expression's rules.
Select an answer for every question, then check the result and read each explanation. Progress remains in this browser; this is a self-check, not a judged program submission or a credential.
Common Mistakes
Do not treat integer division as decimal division or use length as the last valid array index.
