Cognizant interview question

why java is independent compared to other languages