Free Data Structures and Algorithms Course









Subscribe below and get all best seller courses for free !!!










OR



Subscribe to all free courses

How to use Javadoc Comments in Java program for Documentation ?

Program to use Javadoc Comments in Java for Documentation

/**
 * @see java.util.Date
 * */
import java.util.Date;


/** A simple program demonstrating
 * Java Documentation by placing following 
 * annotations :   
 * @author Jonty
 * @author www.hubberspot.com
 * @version 3.0 
 * */
public class TodaysDate {

/**Entry to main method that prints 
 * todays date. 
 * @param args
 * @exception throws no exceptions
 */
   public static void main(String[] args) {
      System.out.println("Hello, it’s: ");
      System.out.println(new Date());

   }

}




Usage command :
javadoc TodaysDate.java

HTML Generated as:




 
© 2021 Learn Java by Examples Template by Hubberspot