Java is platform independent programming language. Here platform means an operating system. When we say platform independent it actually means that the software made with this programing language can run on any of the specified operating systems.
Once the software is made for one platform, it can run on multiple platforms that support the language. Java is supported on Windows, Linux, macOS, AIX and FreeBSD operating systems.
Benefits of being platform independent.From the above diagram you can understand that when we write a java code. This java code is saved with the extension (.java). This .java file is compiled to a .class file. This .class file can run on the JVM on any platform.
This mechanism lets us to run a single java code on multiple platforms. The bytecode can run on any machine that can run JVM.
-min.png)
-min.png)
0 Comments