Question 0-2

Say we've defined the following method.

public static int f(int n) {
    IO.print(n);
    return 1 + n;
}
Suppose our program executes the line
IO.println(1 + f(2 + f(3)));
What is printed in executing this line?

Solution

3
6
8

Back to 9:40 Quiz 0