Answers for "java comments /**"

3

comments in java

// 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>
*/
Posted by: Guest on November-30-2020
0

Commenting in Java

//Single Line

/* Multi Line
Comments 
! */

//Comments cannot be runned
/*This can be
runned */

System.out.println("Hello, World");
Posted by: Guest on October-25-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language