Given the following code:

public static void springFreeze(int temp){
  if (temp < 32)
    System.out.println("Frost!");
  else
  {
    System.out.println("temps are dropping…");
    springFreeze(temp – 4);
  }
}

How many times will springFreeze(40) print out "temps are dropping…"?

3
  • 10
  • 4
  • 0
  • 2

There are no hints for this question