Frage im Vorstellungsgespräch bei Visa Inc.

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