What is the suffix of the java source file name?

The suffix of the java source file name is: ".java". The file extension after java is compiled 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.

35baad09690a5f30391e229fd6352bd7.png

The java source file extension is .java.

The file extension of java compiled file is .class.

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

66ad23a5fc3b7e7ea713cb69638d8bb0.png

Extended information:

The full name of the class file is the Java class file, which mainly makes Java more suitable for the network in terms of platform independence and network mobility. Its platform-independent mission is to provide Java programs with services in binary form independent of the underlying host platform.

This file breaks with the traditions followed by languages ​​such as C or C++, in which programs written in these traditional languages ​​are usually first compiled and then linked into separate binaries dedicated to supporting specific hardware platforms and operating systems.

Recommended tutorial: "java tutorial"

Guess you like

Origin blog.csdn.net/m0_54853503/article/details/124271186