Question: what is the difference between java and javac?
Answer: The javac command is used to compile Java programs, it takes . java file as input and produces bytecode. ... The java command is used to execute the bytecode of java. It takes byte code as input and runs it and produces the output.