Home  >  Article  >  Java  >  What is the suffix of java source file name?

What is the suffix of java source file name?

烟雨青岚
烟雨青岚Original
2020-07-15 11:48:4815287browse

The suffix of the java source file name is: ".java". The file extension of compiled java is: ".class"; the full name of the "class" file is "Java class" file, which mainly makes Java more suitable for the network in terms of platform independence and network mobility.

What is the suffix of java source file name?

The java source file extension is .java.

The file extension of compiled java is .class.

The Java source program we compiled is saved as. java suffix, and then compile it with javac (Java language compiler) to generate the suffix name. The bytecode file of the class is saved in the same directory as the source program. If there is an error in the source code, the error will be reported. The error will be pointed out line by line. We will find and modify the error according to the report, and recompile until it is generated. class bytecode file.

What is the suffix of java source file name?

Extended information:

The full name of the class file is Java class file, which is mainly used in terms of platform independence and network mobility. Java is better suited for the web. Its task in terms of platform independence is to provide Java programs with services in binary form that are independent of the underlying host platform.

This file breaks the tradition followed by languages ​​such as C or C. Programs written in these traditional languages ​​are usually compiled first and then concatenated into separate binary files that specifically support specific hardware platforms and operating systems. .

Recommended tutorial: "java tutorial"

The above is the detailed content of What is the suffix of java source file name?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn