PratikaPro interview question

Why is java platform independent?