为什么Java类的第一个字母应该是大写的? [英] Why should the first letter of a Java class be upper-cased?
本文介绍了为什么Java类的第一个字母应该是大写的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么Java类的第一个字母应该是大写的?是否无法运行包含低级类名的程序?如果有可能,有什么区别?
Why should the first letter of a Java class be upper-cased? Is it not possible to run a program containing lower-cased class names? If it is possible, what's the difference?
推荐答案
这是大多数Java程序采用的编码约定。当你使用给定的标准时,它使阅读代码更容易。
It's a coding convention, adopted by most Java programs. It makes reading code easier as you become use to a given standard.
不,你不必遵循它,但你不会交任何朋友这样做;)
No, you don't have to follow it, but you won't make any friends by not doing so ;)
这篇关于为什么Java类的第一个字母应该是大写的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文