Skip to content

Glossary: Data Structures and Algorithms in Java

base case

The case a recursive method answers directly without calling itself, such as an empty list adding up to 0. Without one, recursion never stops.

Where the book teaches it

Related terms

recursionStackOverflowError