日期:2014-05-20  浏览次数:20693 次

面试题求解
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.