Previous Topic Next topic Print topic


Comments - in COBOL and Java

COBOL Java
$set sourceformat(variable)
      * Single line "old-style" COBOL comment with '*' in column 7
               *> inline comment may follow COBOL statements etc.
         *>> <summary>XML comments</summary>
// Comments on a single line

/* 
   C style multi-line comments
 */

Portions of these examples were produced by Dr. Frank McCown, Harding University Computer Science Dept, and are licensed under a Creative Commons License.

Previous Topic Next topic Print topic