面试题求解
When calling the main() method of a Java class, if we do not provide any arguments on the command line, then the string array of main() method – will it be empty or null?
[解决办法]
Empty array,猜的。
这种问题比较偏,测试下就知道了。
[解决办法]
System.out.println(args.length);
打印0
[解决办法]
Print args.length.