Solution:
Java is platform independent because it provides the feasibility to run and compile the program in one platform and execute the program on any other platform of your choice.
Credit: 3870