Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the naming rule of identifiers in java

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report