Software written in a language which can be run on any hardware and any OS known as platform independent software and that language is known as "Platform Independent" language.
Java is one of the example of platform independent language, where we generate the binary which is platform independent and can be executed by the JVM which is platform dependent. When we run the same binary on different platform the new JVM which is designed for a specific platform takes care of this and binary is executed without any issue.