← Back to Question List
Java Quiz #32
Generic Max Method
What does this generic method return when called as max(3, 7)?
📄 Code
1public static <T extends Comparable<T>> T max(T a, T b) {2 return (a.compareTo(b) >= 0) ? a : b;3}