What is the use of the 'javac' command?
- A.Execute a java program
- B.Debug a java program
- C.Interpret a java program
- D.Compile a java program
Show answer
The command javac is the Java compiler: it takes a source file with the extension.java, checks its grammar and converts it into a class file containing bytecode, the intermediate code that any Java Virtual Machine can run.
Read the full explanation →