main方法 4-6 When you give a class to the Java interpreter it looks for a main method in the class that has the prototype public static void main(String[]args) and begins executing the statements in it. Programming in Java JAVA4-6 Programming in Java main 方法 • When you give a class to the Java interpreter it looks for a main method in the class that has the prototype public static void main(String[] args) and begins executing the statements in it