Previous Topic Next topic Print topic


Constants - in COBOL and Java

Constants in Managed COBOL

78 MAX_STUDENTS value 25.  *> default public, binary-long
 
*> INITIALIZE ONLY - instance or static, may be initialized in constructor
01 MIN_DIAMETER float-short value 4.93 initialize only.  

Constants in Java

final int MAX_STUDENTS = 25;

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