**** # 1.內容 | | 解釋 | | | | | // 內容 | 單行註釋 | | /* 內容 */ | 多行註釋 | | /*** 內容 */ | 文檔註釋 | # 2.多行註釋 與 文檔註釋的區別 多行註釋:  和 writeExternal( )方法寫的數據 | @serialData description |
@serialField | 說明一個ObjectStreamField組件 | @serialField name type description |
@since | 標記當引入一個特定的變化時 | @since release |
@throws | 和 @exception標簽一樣. | The @throws tag has the same meaning as the @exception tag. |
{@value} | 顯示常量的值,該常量必須是static屬性。 | Displays the value of a constant, which must be a static field. |
@version | 版本 | @version 1.0 |
5.規範
類,方法的註釋,要用javadoc的方式寫,為了在生成的API文檔上 說明此類或方法的用途