Platform Independent
If a program written on a particular platform can run on other platforms without any recompilation, it is known as a platform independent program . Usually larger applications are created by a team of developers. While most of them could be working on the same operating system such as Windows, others might be using different operating systems like Mac or Linux. In this scenario, we might have a situation where a program written on Windows needs to be executed on Mac OS also. Since Java is platform independent , it is not a problem. A program written using Java on Windows will execute without any recompilation on any other platform.