Visa Inc. Interview Question

Two sum with unique pair, why java is platform independent.