It is the ability to write a program in one language like C++ and run it using other languages like Java and C#.

It is the ability to write a program on any platform.

It is the ability to write a program and compile it anywhere.

It is the ability to write a program and run it anywhere.

Correct Answer : D

Platform independence means writing a program once and runnning it anywhere multiple times in suitable platforms. This is the primary intention of Java. Java is a compiler and interpreter oriented language. The source code passes through compiler and a .class file (bytecode) is created which passes through interpreter. This bytecode is portable and runs on multiple platforms like Windows, Unix, Linux, Android, Mac etc.,