- passive income - passive income

How Java Program Works Internally?

How Java Program Works Internally:

 When a Java program is compiled, Java's program does not completely convert to Machine Language but converts into an Intermediate Language, which is called Java Bytecodes. These codes are platform independent, so they can be run on any operating system and any processor. Java's program is compiled only once, but every time the Java program is run, that program is interpreted every time. We can understand this through the following picture-
How Java Program Works Internally

For Java Bytecodes we can assume Machine Codes for Java Virtual Machine (Java VM). Every Java Interpreter, whether it is Java Development Tool or a browser that runs Java Applets, is implementing Java Virtual Machine itself. Java Virtual Machine can also be implemented in hardware, resulting in today's Mobile System Software.                                                                                                                                                                                                                                                                                   Java Bytecodes gives us the convenience that we compile a Java program once and run anywhere. We can compile any Java program on any computer that has Java Compiler. Then bytecodes of that Java program can be run on any computer that has Java VM. For example, the same Java Program can be Execute on various platforms like Windows, OS / 2 MacOS NT, Macintosh, etc.

Java Platform

The platform is a software or hardware environment that has a program run. Java Platform is different from many other Platforms. Java Platform is a Software Platform, which runs on top of all other Hardware Based Platform ie IE. Most other Platforms are Combine of Hardware and Operating System. There are two Components of the Java Platform.                                                                                                                                                                                                                                                  The first is Java Virtual Machine (Java VM) which we have already known about. This is the Base or Base of Java Platform and remains above the different Hardware Base Platform.
The second is the Java Application Programming Interface (Java API) which we will now learn about.
Java API is a very large collection of Ready Made Software Components that offers many useful capabilities like Programmer GUI (Graphical User Interface). Java APIs have been grouped as related Components' Libraries. The groups of these different related components are called packages only. Which is somewhat similar to the C / C ++ header files, but C's Header File is a collection of Functions, whereas the Java package is a collection of classes in a manner. We can show a Java program as follows:

When a Java program is executed on a computer, the Java program and the Hardware Based Platform are the Java API and the Layer of the Java Virtual Machine which separates the Java Program from the Hardware Dependencies. That is, because of both of these, the Java program is not dependent on any computer's hardware. As a Platform Independent Environment Java program is somewhat slow compared to other Native Codes Programs. But still good compilers, because of the well-tuneup interpreters and bytecodes compilers, Java's performance can be brought around the performance of the Native Code and also with all the features of Java.                                                                                                                                                                                                                                               If Java is the most familiar form of Java programs, then it is Java applets. An Applet is also a Java program, but its feature is that it runs in any Java Enabled Browser like Internet Explorer, Netscape Navigator, Google Chrome, Opera, FireFox, etc, this can not run independently. While Java Application can be Standalone Run. Applets are similar to Application.

It is not that Java can be used only for writing Web Pages Applications. Rather Java is also a Powerful Software Platform and General Purpose, High-Level Programming Language. Examples of Java's most common application programs are Servers that serve as service providers to various clients of a network. Web Servers, Proxy Servers, Mail Servers, Print Servers, and Boot Servers are various examples of Java applications. Servlets are similar to Applets but instead of running in a browser they run in Java Servers and do the Configuring or Tailoring of Java Server.                                                                                                                                                                                                                                                                                                                                                                     There can be a question about how Java API supports all these types of programs. The answer is that it supports all these types of programs through a Software Components package, which has different types of Functionalities. Core API is an API that is fully implemented in every Java Platform. Core API provides us the following features:

The Essentials:

Handle many things like objects, strings, threads, numbers, input and output, data structures, system properties, date and time.


Provides various components to create Java applets.


Provides URLs, TCP, and UDP sockets and IP addresses to get the convenience of networking.


It provides us with such facility that we can write programs that can run equally in the whole world.                                                                                                                                                                                                                                                                                                                             Security:

This provides us both low-level and high-level protection. Also provides electronic signatures, public/private key management, access control, and certificates.

Software components:

This gives us Components such as JavaBeans, which can be plug-in in an already-made Component Architecture such as Microsoft's OLE / COM / Active-X architecture, OpenDoc, and Netscape's Live Connect.

Object serialization:

This allows us to communicate with Remote Method Invocation (RMI) with other simple tools, which is being used today in Mobile Technology.

Java Database Connectivity (JDBC):

This gives us the convenience of connecting and accessing Relational databases.

In Java, there are not only core APIs but also some standard extensions. These define APIs for Standard Extensions 3D, Servers, Collaboration, Telephony, Speech, Animation and many more. (How Java Program Works Internally)                          
How Java Program Works Internally? How Java Program Works Internally? Reviewed by Raj Aryan on June 26, 2019 Rating: 5

1 comment:

  1. All information available of the Java....thanks dear...Plz updated...


Powered by Blogger.