Java is said to be platform independent. Because, all the java codes will be running on JVM (Java Virtual Machine) where as c and c++ are depends on the operating system. First the JIT (Just in Time) compiler convert the program into byte code (that is .class file) once you compile it on JVM. The byte code has the capability to run on any operating system if OS has JVM. So, Java is definitely Platform Independent Language.