当前位置:网站首页>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
边栏推荐
- [selenium automation] common notes
- 《论文笔记》Multi-UAV Collaborative Monocular SLAM
- How to save your code works quickly to better protect your labor achievements
- 两个数相互替换
- Every time I look at the interface documents of my colleagues, I get confused and have a lot of problems...
- 【C】 (written examination questions) pointer and array, pointer
- 【雅思阅读】王希伟阅读P4(matching1)
- 基本放大电路的学习
- 他做国外LEAD,用了一年时间,把所有房贷都还清了
- [paper reading] cavemix: a simple data augmentation method for brain vision segmentation
猜你喜欢
Continuous modification of business scenario functions
Huawei employs data management experts with an annual salary of 2million! The 100 billion market behind it deserves attention
PMP certificate renewal process
abc 258 G - Triangle(bitset)
Application of fire fighting system based on 3D GIS platform
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
ORB(Oriented FAST and Rotated BRIEF)
[论文阅读] CarveMix: A Simple Data Augmentation Method for Brain Lesion Segmentation
图解网络:什么是网关负载均衡协议GLBP?
Hisilicon 3559 universal platform construction: YUV422 pit stepping record
随机推荐
How to effectively monitor the DC column head cabinet
2022.07.03(LC_6109_知道秘密的人数)
他做国外LEAD,用了一年时间,把所有房贷都还清了
uniapp微信小程序拿来即用的瀑布流布局demo2(方法二)(复制粘贴即可使用,无需做其他处理)
2022.07.03 (lc_6111_counts the number of ways to place houses)
Actual combat simulation │ JWT login authentication
[paper reading] Tun det: a novel network for meridian ultra sound nodule detection
If you open an account of Huatai Securities by stock speculation, is it safe to open an account online?
Using fast parsing intranet penetration to realize zero cost self built website
[论文阅读] CarveMix: A Simple Data Augmentation Method for Brain Lesion Segmentation
Introduction to ACM combination counting
[IELTS reading] Wang Xiwei reading P3 (heading)
Microservice
[monitoring] ZABBIX
巩固表达式C# 案例简单变量运算
两个数相互替换
Expand your kubecl function
Build your own minecraft server with fast parsing
P4408 [noi2003] truant children (tree diameter)
Date time type and format in MySQL