Single Choice Moderate

QJava code is written in files with extension:

ID: #25891 MCQ Quiz - Class 8 - Programming 5 views
Question Info
#25891Q ID
ModerateDifficulty
MCQ Quiz - Class 8 - ProgrammingTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A .java
  • B .class
  • C .exe
  • D .pdf
Correct Answer

Explanation

Correct Answer Explanation:

Java source code files use the .java extension. When compiled, they produce .class bytecode files.

Why the other options are incorrect:

  • Option B: .class is the compiled bytecode format.
  • Option C: .exe is a Windows executable format.
  • Option D: .pdf is a document format.

Share This Question

Challenge a friend or share with your study group.