Ask Question

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

+4
Answers (1)
  1. 9 August, 10:02
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers