Hexaware Technologies interview question

Why Java is platform independent?