public class map默认值 { public static void main(String[] args) { Map<String, String> resultMap = new HashMap(16); if (resultMap.isEmpty()) { System.out.println("map默认是空"); } if (resultMap != null) { System.out.println("map默认不是null"…
public class List默认值 { public static void main(String[] args) { List<String> arrayList = new ArrayList<>(); List<String> linkedList = new LinkedList<>(); if (arrayList.isEmpty()) { System.out.println("arrayList默认是空"); } i…
[1]函数调用时形参的压栈顺序 1.示例代码如下(VS2010): #include <iostream> using namespace std; ); void fun(int a, int b, int c) // 可以写 { cout << "a :: " << a << endl; cout << "b :: " << b << endl; cout << &q…