Cognizant Interview Question

Q. Why is java platform independent?