public class MainLoad {
public static void main(String[] args) {
//静态加载。编译时加载,编译时就须要加载所有可能使用到的的类,一个类出错,其余类的功能都不能获得执行
if("Word".equals(args[0])){
Word Word = new Word();
System.out.println("Word");
}
if("Excel".equals(args[0])){
Excel excel = new Excel();
System.out.println("Excel");
}
}
}