Cognizant Interview Question

Why is Java platform independent?