What is the filename extension for a Java bytecode compiled file?



What is the proper filename extension for a Java bytecode compiled file?

A. .java

B. .bytecode

C. .class

D. .dll

Answer:

C. .class

The proper extension for a Java compiled bytecode file is .class, making Option C the correct answer.

Explanation:

In Java, we use the javac compiler to compile .java to .class file. For example - the HelloWorldApp.java file to the HelloWorldApp.class file. A HelloWorldApp.class file does not contain code that is native to your processor; it instead contains bytecodes of the machine language of the Java Virtual Machine (Java VM). 

Free Spring Boot Tutorial - 5 Hours Full Course


Watch this course on YouTube at Spring Boot Tutorial | Fee 5 Hours Full Course

Comments