Question d’entretien chez Cognizant

Tell me why java is platform independent?