Collections and Generics

© examsiri.com
Question : 37 of 53
 
Marks: +1, -0
Given:
1. public class Test {
2.   public < T extends Comparable > T findLarger(T x, T y) {
3.    if(x.compareTo(y) > 0) {
4.     return x;
5.    } else {
6.    return y;
7.    }
8.   }
9. }
and:
10. Test t = new Test();
11. /* insert code here */

Which two will compile without errors when inserted at line 11?(Choose two.)
Go to Question: