Hello if you have seen my previous question it said how to compile files with the command
The output of
javac is always classfiles, and the name of the file matches the name of the class contained within it. (A source file with multiple classes in will result in multiple output files.)
If you use the
-d command line option,
javac will also use the package of the class to generate a directory hierarchy, with the
-d option specifying the root. Otherwise, each class file will be output in the same directory as the source file from which it was compiled.