HeapTrace Interview Question

why Java is platform independent