public class C {
public int max(int a, int b) {
if (a > b) return a;
return b;
}
}
// ...
C c = new C();
System.out.println(c.max(4, 9));What is printed?
- A
0
- B
13
- C
4
- Dcheck_circle
9
Explanation
Since 4 is not greater than 9, the second return executes and returns 9.