main()方法可以指定为private还是protected? [英] Can the main( ) method be specified as private or protected?
本文介绍了main()方法可以指定为private还是protected?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
main()
方法可以指定为私有还是受保护?
Can the main()
method be specified as private or protected?
它会编译吗?
它会运行吗?
推荐答案
它会编译,它不会运行(使用Eclipse测试)。
It will compile, it will not run (tested using Eclipse).
这篇关于main()方法可以指定为private还是protected?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文