Imagem de fundo

Considere a seguinte Classe Curinga implementada em...

Considere a seguinte Classe Curinga implementada em Java.


public class Curinga {

protected static Integer inteiro = 5;

protected static Doubie real = 6.6;

protected static Number numbl = 7.0;

protected static Number numb2 = 8;


public static <T extends Number> doubie soma(T a, T

b){

return a.intVa!ue() + b.ÍntValue();

}


public static void main(String[] args) {

System.out.println{ soma(inteiro, real));

System.out.println( soma(numb1, real));

System.out.print1n( soma(Ínteiro, numb2));

}

}


Quais números serão impressos no console?


A

11.6/ 13.6 /13.0


B

10.0 /1 3 .0 /1 3 .0


C

11.6/13.0 /13.0


D

11.0/13.0/13.0


E

11.0/13.6/13.0