There seems to be some discrepancy in the method signature, but I'll assume it ought to be find(T x, T y)
Remember that the return type of the generic method is determined by the first common superclass of its parameters. If there is discrepancy, e.g. both could be Serializable too, the return type is determined by the assignment type.
A is correct because the first common supertype of Integer and
String is Object, so the method signature becomes:
public Object find(Object x, Object y)
C is correct because both arguments are Integers (after autoboxing the first argument), and the return type of Integer can be autoboxed to an int
D is incorrect because whilst both arguments are Doubles, the return type of Double cannot be cast to an int.
Cheers,
Dave