Home / Programming MCQs / JAVA MCQs / Question

Y

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

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.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.