• 2022-06-15
    {下面程序编译运行的结果是( )class Demo <;T>; {void setData(T a){System.out.print(a);};}public class Demo2015 {public static void main(String[]a){Demo<;String>; d = new Demo<;String>;();d.setData("a");d.setData(1);}}}
    A: a
    B: 1
    C: a1
    D: 编译错误