The scala command executes the generated bytecode.
scala HelloWorld
scala allows us to specify command options, such as the -classpath (alias -cp) option:
scala -cp classes HelloWorld
The argument of the scala command has to be a top-level object.