A recursive method without a proper base case causes
- A
Compile error
- Bcheck_circle
StackOverflowError at runtime
- C
Infinite loop
- D
Returns null
Explanation
Each recursive call adds a stack frame; eventually exhausts stack.
AP Computer Science A· difficulty 4/5
A recursive method without a proper base case causes
Compile error
StackOverflowError at runtime
Infinite loop
Returns null
Explanation
Each recursive call adds a stack frame; eventually exhausts stack.
Want 10 more like this — adaptive to your weak spots?