泛型类声明格式正确的是?
A.class Generic(T) {}
B.class Generic<T> {}
C.interface Generic<T> {}
D.public static <T> void method(){}
正确答案是B
泛型类声明格式正确的是?
A.class Generic(T) {}
B.class Generic<T> {}
C.interface Generic<T> {}
D.public static <T> void method(){}
正确答案是B