Capgemini interview question

Oops concepts, why Java platform independent