Capgemini interview question

is java platform dependent and why