Java is known for its "write once, run anywhere" principle. It is designed to be platform-independent, meaning that Java programs can run on any operating system that has a Java Virtual Machine (JVM) installed.