what is difference between java and javac command?
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.