与C语言一样,java主函数也是main,不同的是java的main是在类中的。 class Test{ pulibc void main(String args[]) //入口函数 { 。。。。 } } 对象名理解为对象的引用