Previous Topic Next topic Print topic


Comments - in COBOL and Java

Comments in Managed COBOL

      * (in column 7) rest of line is commented (COBOL fixed format)
         *> rest of line is commented 
         *> may follow COBOL statements 
         *>> <summary>XML comments</summary>

Comments in Java

// Rest of line
/* Multiple
   line  */
/** Java doc. Type /** Eclipse will autocomplete */

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