Unit 10: Recursion Flashcards
1
Q
recursive call
A
the line(s) in the method that call itself
1
Q
base case
A
the method returning an answer without a recursive call (what stops the method, all finite ones have one)
2
Q
call stack
A
java keeping track of all the method calls after the main method executes
3
Q
stack
A
a way of organizing data that adds and removes items only from the top of the stack (like cups)
how java knows which method to go back to when moving around method executions