What is extension of Java source code file ?
A. .j
B. .jav
C. .java
D. .jvp
Answers
Answered by
0
Extension for Java source code file is .java.
Typical steps to compile a Java Program
Step 1: Save your source code in a file name (exactly same as your class name) with .java extension
Step 2: Go to your working directory and compile javac -d . yourfilename.java
Step 3: After successful compilation you will see yourfilename.class in your working directory if it does not have package.
Similar questions
Computer Science,
6 months ago
Science,
6 months ago
Computer Science,
11 months ago
Math,
1 year ago