Non-void method without an explicit return on every path
- A
Returns 0
- Bcheck_circle
Compile error
- C
Throws exception at runtime
- D
Returns null
Explanation
Java compiler enforces "missing return statement" check.
AP Computer Science A· difficulty 3/5
Non-void method without an explicit return on every path
Returns 0
Compile error
Throws exception at runtime
Returns null
Explanation
Java compiler enforces "missing return statement" check.
Want 10 more like this — adaptive to your weak spots?