In Java, Codes are compiled by java compiler (javac) and generate an intermediate object codes known as Byte code. These codes interpret by Java Virtual Machine (JVM) and translate into executable code.
Java codes are compiled by java compiler (javac) and generate an intermediate object codes known as Byte code. This byte code is the same for Java Virtual Machine (JVM) of all platforms. i.e. if we generate a byte code by in windows platform, then that byte code will be run in UNIX, LINUX, MAC or any other operating system that support the JVM. That is why Java language known as platform independent.