Interactive:

Task 8 of 10 · 0 solved · 10 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

For the method below, which call recurses forever (never reaches the base case)?

static void count(int n) {
    if (n == 0) return;
    System.out.println(n);
    count(n - 1);
}
Next task →