main函数中不写public可以吗?

public class Test {
	static void main(String[] args) {
		System.out.println("hehe");
	}
}

 

运行结果:

 

posted @ 2018-10-07 20:20  ChenPS  阅读(105)  评论(0编辑  收藏  举报