A description about a basic programming element is called comment.
Comments are meant for developer, to understand purpose.
Types of comments:
Java supports 3 types of comments
1)Single line comments - //
examples: //this is single line comment
2)Multiline comments - /* */
ex:
/*first line of code;
second line of code;
third line of code;
4th line of code;
5th line of code*/
3)Document comment - /**description*/
Comments are meant for developer, to understand purpose.
Types of comments:
Java supports 3 types of comments
1)Single line comments - //
examples: //this is single line comment
2)Multiline comments - /* */
ex:
/*first line of code;
second line of code;
third line of code;
4th line of code;
5th line of code*/
3)Document comment - /**description*/
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.