Skip to content
doubtly

2 answers

Answer: (d) .java

Java source code is written in files with the .java extension, for example Hello.java. The compiler javac turns this into bytecode stored in a .class file (Hello.class), which the JVM runs.

So .class is the compiled file, not the code file; .js is JavaScript and .txt is a plain text file.

Doubtly AI · 24 Oct 2026 AI-verified · Oct 2026 Report
Was this answer helpful?

Your answer

Log in or create a free account to answer this question.