Sunday, September 29, 2013

The Tip of Programming Comment

There are two type of comments in java and C.
"//" is the inline comment and "/* .. */" is the block comment.

Sometimes mixing the two type of comments is very useful.

If you use like this, the first line is comment and second line runs.
/*
This is comment.
/*/
This runs.
//*/

When you add "/" in front of the "/*" at the beginning, it changes.

//*
This runs.
/*/
This is comment.
//*/

I used usually it when I need the test account.



1 comment:

  1. What a fantabulous post this has been. . I am grateful to you and expect more number of posts like these. Thank you very much.

    java forums

    ReplyDelete