main函数中不写public可以吗? public class Test { static void main(String[] args) { System.out.println("hehe"); } } 运行结果: