Q. How to compile java code in command prompt?
β
Correct Answer: (A)
javac filename.java
Explanation: Type javac filename.java and press enter to compile your code. If there are no errors in your code, the command prompt will take you to the next line.