java naming specification

Types of constraint Case
title All lowercase, separated by a plurality of words underlined '-' spring-cloud
Package names All lowercase com.alibaba.fastjson
The class name Word capitalized Feature, ParserConfig,DefaultFieldDeserializer
variable name The first letter lowercase, when more than one word, except the first word, the first letter of every other word capitalized password, userName
Constant name All caps, a plurality of words, a '_' partition CACHE_EXPIRED_TIME
method With variable read(), readObject(), getById()

 

 

 

Guess you like

Origin www.cnblogs.com/jijijijibeibeibei/p/12007107.html