what is java | learn java | java Comments | what is comments in java
Java Comments
- That Comment is used give a good explaination of Your Code
- The Simbol of the commend is Double slash like "//"
- If You comment a multiple line use "/*" that should start commend before
- "*/" it is used at end of the comments
Single Line Comments:
--------------------------------------------------
| //This is a comment |
|System.out.println("Hello World");|
--------------------------------------------------
Multi-Line Comments:
---------------------------------------------------
| /*This is a comment for multi|
|line comment code */ |
|System.out.println("Hello World");|
--------------------------------------------------
Comments
Post a Comment