What is the naming rule of identifiers in java
This article mainly introduces what is the naming rule of identifiers in java, which has a certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let's take a look at it.
The naming of classes / variables / attributes / methods / packages all follow the naming rules of identifiers.
Identifiers must consist of numbers, letters, underscores, and $, and numbers cannot begin.
Identifiers are case sensitive.
Identifiers can be of any length but should not be too long.
The identifier is as close as possible to the meaning of the name, and it is supported in Chinese but not recommended.
Identifiers cannot use keywords.
The java keyword has the following:
Thank you for reading this article carefully. I hope the article "what is the naming Rule of identifiers in java" shared by the editor will be helpful to you. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!