A) .class
B) .java
C) .txt
D) .js
E) None of these
What Is The Extension of Java Code Files
Answer. Option B) Java is the Correct Answer.
Java code files typically have the “.java” extension. This extension is used to identify Java source code files, which contain the human-readable code that is written by developers. Once the Java code is written, it needs to be compiled into bytecode using the Java compiler. The resulting bytecode is then executed on the Java Virtual Machine (JVM). For example, if you have a Java class named “MyClass”, the source code file would typically be named “MyClass.java”
Hello, I’m Hridhya Manoj. I’m passionate about technology and its ever-evolving landscape. With a deep love for writing and a curious mind, I enjoy translating complex concepts into understandable, engaging content. Let’s explore the world of tech together