You can structure applications that use object-oriented COBOL syntax in one of three ways.
An OO application can begin with:
You can run the program by specifying the name of the executable module at the command prompt.
You can run the application with the java command, specifying the name of the class that contains main and zero or more strings as command-line arguments.
You can run the application with the java command, specifying the name of the class that contains main and zero or more strings as command-line arguments.
Structure an OO application this way if you want to:
Examples: COBOL applications that you can run using the java command
related tasks
Compiling, linking, and running OO applications
Running programs
Defining a factory method
Declaring arrays and strings for Java