当前位置:网站首页>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
边栏推荐
- Verilog tutorial (11) initial block in Verilog
- [论文阅读] TUN-Det: A Novel Network for Thyroid Ultrasound Nodule Detection
- 【雅思阅读】王希伟阅读P4(matching1)
- IT转测试岗,从迷茫到坚定我究竟付出了什么?
- Application of multi loop instrument in base station "switching to direct"
- uniapp上传头像
- Go step on the pit - no required module provides package: go mod file not found in current directory or any parent
- Continuous modification of business scenario functions
- Enterprise application business scenarios, function addition and modification of C source code
- lambda expressions
猜你喜欢
[selenium automation] common notes
[IELTS reading] Wang Xiwei reading P4 (matching1)
XML的解析
Get to know ROS for the first time
"Xiaodeng" domain password policy enhancer in operation and maintenance
OpenHarmony资源管理详解
abc 258 G - Triangle(bitset)
A new method for analyzing the trend chart of London Silver
P3304 [SDOI2013]直径(树的直径)
Significance of acrel EMS integrated energy efficiency platform in campus construction
随机推荐
如何有效对直流列头柜进行监测
多回路仪表在基站“转改直”方面的应用
模板的进阶
【北京大学】Tensorflow2.0-1-开篇
Cross domain request
P3304 [sdoi2013] diameter (diameter of tree)
Consolidated expression C case simple variable operation
初识ROS
同事的接口文档我每次看着就头大,毛病多多。。。
TS quick start - functions
ORB(Oriented FAST and Rotated BRIEF)
电力运维云平台:开启电力系统“无人值班、少人值守”新模式
Fast analysis -- easy to use intranet security software
Upload avatar on uniapp
XML的解析
Instructions for go defer
如何避免电弧产生?—— AAFD故障电弧探测器为您解决
Is it safe to open an account in the College of Finance and economics? How to open an account?
Ap8022 switching power supply small household appliances ACDC chip offline switching power supply IC
「运维有小邓」域密码策略强化器