NTT DATA interview question

Why is java platform independent.