How to write Comments : Java Doc Comments « Language Basics « Java






How to write Comments


public class Comment {
  // This is a one-line comment; it extends to the end of the line.
  /*
   * This is a delimited comment, extending over several lines.
   */
  int /* This delimited comment extends over part of a line */x = 117;
}
           
       








Related examples in the same category

1.Comments demo