Java – when to use uppercase and lowercase names

I'm a novice in Java. I just started learning this language, but I encountered some obstacles along the way. I hope you can give me some guidance on the problems I encountered

I know that Java is case sensitive in variables and reserved words However, I can't use my head around which to use lowercase and which to use uppercase For example, I know you must use lowercase in class However, for system, you must use the uppercase s, otherwise an error will occur at the compilation stage

Someone can give me some help to know when to use uppers and when to use lowercase Java commands? Is everything lowercase unless I reference another object and then rely on whether the object is saved with an uppercase or lowercase name?

Solution

You need to read, understand and use the Oracle java coding guide. Here you can:

http://www.oracle.com/technetwork/java/codeconv-138413.html

Named part:

http://www.oracle.com/technetwork/java/javase/documentation/codeconventions-135099.html#367

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>