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

Popular posts from this blog

what is java | how to use Java | best Programming Language | how to create a class | java basic syntax | what is syntax | syntax in java

java variables | variables in java | what is java | how to use variable in java |

What is java | learn java | learn java in tamil | easy to learn java| how to learn java|examples in java