Hexaware Technologies Interview Question

Why Java is platform independent?