Home / Programming MCQs / JAVA MCQs / Question


Yatendra Sir • 5.60K Points
Tutor III

Q. How to compile java code in command prompt?

(A) javac filename.java
(B) java filename.java
(C) javac filename
(D) java filename


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.

You must be Logged in to update hint/solution


Login to discuss.