Pergunta de entrevista da empresa Cognizant

Tell me why java is platform independent?