Frage im Vorstellungsgespräch bei Adwitiya Technologies

Why is Java considered platform-independent?