Cognizant interview question

Why Java in Platform Independent ?