Capgemini Interview Question

Oops concepts, why Java platform independent