Posts

Showing posts with the label platform independence in java

Architecture and Platform independence of java

Image
We need two different platforms ready to use java those are hardware platform and software platform. Java JDK/JRE is a software which can be installed on top of Hardware platform. Which are physically exists those are called as Hardware like Computer. By using these two platforms we can run any applications. Java is platform independent that means once we compile java program and generates a class file, we can execute that class file on top of any other environment(Linux, Unix,Mac..etc) and we can get the same results. To understand about Java architecture or internal process of program compilation and execution, we should understand about JVM (Java Virtual Memory), JRE (Java Runtime Environment) and JDK (Java Development Kit). To understand more of JVM, JRE and JDK, have a look at this article . As on when we have created java program and compiled it by using Java compiler, the compiler will generate the .class file which contains the byte code of ,java file. Compilation will ...