NiCE interview question

Q: why JAVA is platform Independent?