Once we defined classes in Scheme, we tested and used them in separate code, and Java also allows classes to be used by other classes and programs. In addition, Java allows any class to have a main method, which can be used to run a program based on the given class. While this capability may be useful in running programs, we will not utilize main 's parameters for now. This gives rise to the descriptor static in the declaration of main . The main begins by declaring and initializing objects for later use.
Output is achieved by declaring and initializing a variable out .
The second part of the line creates a new SimpleOutput object, and uses that object to initialize out . In contrast, print displays the text, but does not add the new line. If the println had been used in both cases, then these data would be printed on two separate lines.