Get the App
SLTechnology News&Howtos  ›  Network Security  › 

What is the extension of the java source file

Shulou Source: shulou.com Published: 2022-05-31 16:29:35 11月20日 Update

This article introduces the relevant knowledge of "what is the extension of the java source file". In the operation of the actual case, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Java source file extension is ".java"; compiled with javac to generate a bytecode file with the suffix ".class", saved in the same directory as the source program, if there is an error in the source code, it will point out the error by line, modify the error and recompile until the ".class" bytecode file is generated.

The operating environment of this tutorial: windows7 system, java10 version, DELL G3 computer.

The java source file extension is .java.

The file extension after java compilation is .class.

We compiled the Java source program saved as a .java suffix, and then compiled with javac (compiler of the Java language) to generate a bytecode file with the suffix .class, which is saved in the same directory as the source program. If there is an error in the source code, it will report the error, point out the error by line, find and correct the error according to the report, and compile again until the .class bytecode file is generated.

Extended data:

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

This file breaks with the tradition followed by languages such as C or C++, where programs written in these traditional languages are usually compiled first and then wired into separate binaries that specifically support specific hardware platforms and operating systems.

This is the end of the content of "what is the extension of the java source file". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Files errors compilations extensions source files bytes platforms generation suffixes source programs languages consistency binaries traditions content aspects more source code directories knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno vpn Shulou Tech Info Docker Huawei