資源描述:
《java編程語言代碼規(guī)范》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫。
1、TMJava編程語言代碼規(guī)范1999年4月20日修訂版譯:Johnson.LeeTMJava編程語言代碼規(guī)范目錄1引言.........................................................41.1為什么有代碼規(guī)范........................................41.2致謝..................................................42文件名......................
2、.................................42.1文件后綴...............................................42.2常用文件名.............................................53文件結(jié)構(gòu).....................................................53.1Java源文件.......................................
3、.......53.1.1頭注釋.............................................53.1.2Package和Import語句...............................63.1.3類和接口的聲明......................................64縮進(jìn).........................................................64.1行長...................
4、...............................74.2換行..................................................75注釋.........................................................85.1注釋格式實(shí)現(xiàn)............................................95.1.1塊注釋........................................
5、.....95.1.2單行注釋..........................................105.1.3尾端注釋..........................................105.1.4行末注釋..........................................105.2文檔注釋..............................................116聲明............................
6、............................126.1每行聲明的數(shù)量.........................................126.2初始化...............................................126.3布局.................................................126.4類和接口的聲明.........................................137語句.
7、.......................................................147.1簡單語句..............................................147.2復(fù)合語句..............................................147.3return語句............................................147.4if,if-else,ifelse-ifelse
8、語句.......................147.5for語句...............................................157.6while語句.............................................157.7do-while語句..........................................167.8switch語句..................................