A

Admin • 828.70K Points
Coach

Q. How to compile java code in command prompt?

  • (A) javac filename.java
  • (B) java filename.java
  • (C) javac filename
  • (D) java filename
  • Correct Answer - Option(A)
  • Views: 15
  • Filed under category Java
  • Hashtags:

Explanation by: Admin
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.

Be the first to start discuss.