How Java Compiler Works?
Java has compiler name as javac which convert source code to intermediate code which is known as java bytecode. This java bytecode is not dependent on any platform that is if you compile your source code in windows platform by using javac compiler so you can run this code in any other platforms like Linux, Mac.