Cognizant Interview Question

Why Java in Platform Independent ?