当前位置:网站首页>Identifiers and keywords
Identifiers and keywords
2022-07-05 00:26:00 【The learning path of Java Rookies】
Identifiers and keywords
Preface
The standardized naming is conducive to our development and team collaboration
One 、 identifier
1. Naming rules
2. Naming specification
Package name : All letters are lowercase when multiple words are formed : aaa.bbb.ccc // such as com.hsp.crm
Class name 、 The interface name : When there are many words , Capitalize all words : XxxYyyZzz
[ hump ] such as : TankShotGameVariable name 、 Method name : When there are many words , First word initial lowercase , The second word begins with each word capitalized : xxxYyyZzz [ Small
hump , abbreviation Hump method ]
such as : tankShotGameConstant names : All letters are capitalized . When there are many words, each word is connected with an underscore : XXX_YYY_ZZZ such as : Define an income tax rate TAX_RATE
Two 、 keyword
Definition : By Java Language gives special meaning to , String used for special purpose ( word )
characteristic : All letters in the keyword are lowercase
There is no need to recite these keywords , Remember it when you use it too much
3、 ... and 、 Reserved words
Java Reserved words : existing Java The version is not yet in use , But later versions may be used as keywords . Avoid using these reserved words when naming your own identifier
byValue、cast 、future 、 generic 、
inner 、 operator 、 outer 、 rest 、
var 、 goto 、const
边栏推荐
- IT转测试岗,从迷茫到坚定我究竟付出了什么?
- [论文阅读] CarveMix: A Simple Data Augmentation Method for Brain Lesion Segmentation
- 【雅思阅读】王希伟阅读P4(matching1)
- 雅思考试流程、需要具体注意些什么、怎么复习?
- The company needs to be monitored. How do ZABBIX and Prometheus choose? That's the right choice!
- P4408 [noi2003] truant children (tree diameter)
- [paper reading] cavemix: a simple data augmentation method for brain vision segmentation
- Expand your kubecl function
- 业务实现-日志写到同一个行数据里面
- Design of emergency lighting evacuation indication system for urban rail transit station
猜你喜欢
The company needs to be monitored. How do ZABBIX and Prometheus choose? That's the right choice!
IT转测试岗,从迷茫到坚定我究竟付出了什么?
URL和URI
多回路仪表在基站“转改直”方面的应用
Robot reinforcement learning synergies between pushing and grassing with self supervised DRL (2018)
Continuous modification of business scenario functions
Get to know ROS for the first time
Oracle case: SMON rollback exception causes instance crash
微服务(Microservice)那点事儿
2022.07.03 (LC 6108 decryption message)
随机推荐
Detailed explanation of openharmony resource management
PMP certificate renewal process
Skills in analyzing the trend chart of London Silver
Business implementation - the log is written to the same row of data
分布式BASE理论
A new method for analyzing the trend chart of London Silver
Upload avatar on uniapp
JS convert pseudo array to array
P4281 [AHOI2008]紧急集合 / 聚会(LCA)
Actual combat simulation │ JWT login authentication
Data on the number of functional divisions of national wetland parks in Qinghai Province, data on the distribution of wetlands and marshes across the country, and natural reserves in provinces, cities
In June, the list of winners of "Moli original author program" was announced! Invite you to talk about the domestic database
Date time type and format in MySQL
图解网络:什么是网关负载均衡协议GLBP?
Face recognition 5- insight face padding code practice notes
华为200万年薪聘请数据治理专家!背后的千亿市场值得关注
Illustrated network: what is gateway load balancing protocol GLBP?
XML的解析
[IELTS reading] Wang Xiwei reading P4 (matching1)
JS 将伪数组转换成数组