From what I know, .com files are rarely used any more except for specific system tasks. .exe files are much more common for several technical reasons, however this probably isn't the place to go into such a discussion.
There are some other tricks to make a single executable that will run your
Java program. Although, for a single file with a single class, it probably isn't worth it. The trick I have begun to use lately is to create a JAR file (using the jar utility) that contains all the .class files that I compile from my source code. You need to make a manifest file with the "Main-Class" attribute set to the class that should be run from this jar file.
Once the jar is created, you can run it by typing
In Windows, you can also execute the jar file by double-clicking it in Windows Explorer.
There are also compilers available that compile your Java program into an executable, but I am not familiar with them. The main draw back is that the compiled program looses Java's cross-platform capabilities. On the other hand, the jar file I described above can usually run as-is on any machine with a JVM installed.
HTH
Layne