javac is the Java compiler . It translates Java source code into bytecode. java is the JVM launcher which we use to run our program.
Read moreHow do I compile and run my first Java program?
Programming in Java.
Read moreWhat does it mean to compile a program Java?
Compiling a Java program means taking the programmer-readable text in your program file (also called source code) and converting it to bytecodes, which are platform-independent instructions for the Java VM.
Read more