What is the extension of compiled Java classes?

Java MCQ: What is the extension of compiled Java classes?

a) .js
b) .class
c) .java
d) .exe

Answer:

b) .class

Explanation:

Compiled Java classes are stored in files with the .class extension. These files contain bytecode, which can be executed by the Java Virtual Machine (JVM).

Reference links:

https://www.rameshfadatare.com/learn-java-programming/
https://www.javaguides.net/p/java-tutorial-learn-java-programming.html

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top