Let’s discuss each of these components in detail. Then this code is executed by the machine. Now, this class file is given to Java Virtual Machine (JVM) that translates the class file into an object file containing machine-dependent code. Unlike other language compilers that generate machine code after compilation, the Javac compiler generates a class file consisting of byte code. A program written in Java language is compiled by the Java compiler (javac). So the above diagram shows a simple execution flow for a Java program. The following diagram shows the flow of a Java program. So from the above diagram, we can conclude that,īefore we take up each of the components, let’s understand the execution flow of Java program execution first. Let’s consider the following diagram that depicts the relationship between all these components. Java platform consists of the following components.Īpart from the above main components, the Java platform also contains garbage collectors, a set of libraries and other additional components and tools that are required to efficiently run the Java applications. Java platform is independent of any particular OS which makes Java programming language a platform-independent language. A Java platform consists of a Java compiler, a set of libraries, and an execution engine. Java platform is a software or collection of programs that help us to execute applications written in Java programming language.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |