1 user library 里面的 System library的作用是?
2
3
public class Test {
public static void main(String[] args) {
int[] x = new int[10];
Integer[] y = new Integer[10];
int[][] xy =new int[2][2];
strVars(x);
strVars(y); //compile warn
//Object[] z=x; //error
//strArray(x); // error
strArray(y); // right
strArray(xy);//right
int i = 10;
common(i);
}
public static void strArray(Object[] o) {
}
public static void strVars(Object... o) {
}
public static void common(Object o) {
}
}
4 应用脚本怎么用?
本文深入探讨了Java泛型的概念及其在不同场景下的应用,详细解释了类型擦除的过程和机制,帮助开发者更好地理解和使用泛型特性。
5062

被折叠的 条评论
为什么被折叠?



