user208959
0
Q:

comment in java

//This is single line comment  

/* 
This is  
multi line comment 
*/  
14
//Single line
System.out.println("Hello world"/*+"This is code commented out inline."*/); //You can also put comments at the end
/*
Multi
Line
comment
*/
5
// single line comment example
// integer variable 'a' is assigned value 5
int a = 5;

/*
This is
an example for
java multiline comment
*/

// Documentation comments example
/**
* <h1>Area of Square</h1>
* Area of Square java program calculates area
* using given side value and prints the area.
* <p>
* <b>Note: Adding comments in a java program makes it more
* user friendly and is presumed as good quality code
* 
* @author Sachin
* @version 1.0
* @since 2015-04-12
* </b>
* </p>
*/
1
//This is a comment. It will only span one line

/*This is a 
multi-line comment*/
0
// Demo types of comments

/* This shows
   that the comment
   can be muilti line */
System.out.println("Hello"); // Inline comment
// This is a single line comment
0

New to Communities?

Join the community