2013年10月29日星期二

java notes to write something today and saw these things, do you mean to ask all

 This post last edited by the erbao_vip on 2013-10-29 09:11:55
write something today and saw these things, do you mean to ask all

/**
*
*/



/*
*
*/

so what's the difference between these two
Why ? I looked at them not the same color , the same is a comment .
also the following figure : These comments are what the @ symbol mean ? Longer there to find the original ( English is also OK )

------ Solution ------- -------------------------------------
/ ** ...... * / use to generate java doc. / ** / will not .
------ Solution ---------------------------------------- ----
first one can be used to generate javadoc, the second is a multi-line comment , the first three called annotations , so you study it carefully used
------ Solution - ------------------------------------------
Oh, did not pay attention , @ author javadoc that is displayed inside who the author is
------ Solution ----------------------------- ---------------
/ ** ...... * / is the java documentation comments , coupled with the method above , you can use the mouse to see suspended in a place called Notes to the specific content.
/ ** / multi-line comments , and / / a single line comment used together. . .

@ author ( authors ) , and so is the java doc comment inside the specific instructions , so to , and / * ...... * / used together
example:
/ **
* SomeAction
* @ author Admin
* /
public class SomeAction {

}

------ For reference only ---------------------------------- -----
/ ** ...... * / documentation Comments
/ * ...... * / comment several lines
------ For reference only --------------- ------------------------

没有评论:

发表评论