How to place compiled Java class files in a different directory ?
Use “javac -d
<directory location> <SourceProgram>.java”command to place the compiled class files into a
separate directory location. We need to give our required destination directory
location in -d option.