Capgemini Interview Question

is java platform dependent and why