Informatica interview question

Why Java is platform independent.