Ask Question
10 October, 08:13

What is the Java source filename extension? What is the Java bytecode filename extension?

+5
Answers (1)
  1. 10 October, 10:32
    0
    The extension of java source filename is. java and the extension of bytecode filename is. class

    Explanation:

    The java program is saved with the classname along with. java extension. The. java extension indicated that the particular file in java file.

    Suppose we have a program

    public class Main1

    {

    public static void main (String[] args) {

    System. out. println ("Hello:");

    }

    }

    This program is saved as : Main1. java

    To compile this program in command prompt we use javac Main1. java.

    On compiling the java program it will be converted into byte code which has extension. class filename extension. So on compile, this program will be converted into Main1. class
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “What is the Java source filename extension? What is the Java bytecode filename extension? ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers