Why Java is known as platform independent language.

Java is known as a platform-independent language because it uses the Java Virtual Machine (JVM) to run compiled Java code. The JVM acts as an intermediary between the compiled Java code and the underlying operating system and hardware, allowing the same code to run on different platforms without modification. This makes it possible to write code once and run it on any system that has a JVM installed, making Java a truly portable and platform-independent language.

Comments