X483: Recursion - Mystery Method

Use the following recursive method:

7
 
1
public int mysteryMethod(int n) {
2
  if (n < 0) {
3
    return 5;
4
  } else {
5
    return mysteryMethod(n - 1) + mysteryMethod(n - 2);
6
  }
7
}

What value will be returned from the call mysteryMethod(3)?

Your Answer:

Select one answer:

Feedback

Your feedback will appear here when you check your answer.