Java MCQ: What is the extension of Java code files?
a) .js
b) .txt
c) .class
d) .java
Answer:
d) .java
Explanation:
Java source code files have the extension .java
. These files are compiled by the Java compiler into bytecode files with the extension .class
.
Reference links:
https://www.rameshfadatare.com/learn-java-programming/
https://www.javaguides.net/p/java-tutorial-learn-java-programming.html