HeapTrace interview question

why Java is platform independent