Which command is utilized to compile a Java source file?

Choose the correct answer

Explanation

The 'javac' command is used to compile Java source code into bytecode. The 'java' command runs the compiled Java program, while 'javap' is a disassembler for class files. Therefore, 'javac' is the correct command for compilation.

Which command is utilized to compile a Java source f… — Java concepts and its programming | PakQuizHub