Pergunta de entrevista da empresa Tata Consultancy Services

Why java is platform independent?