PTC interview question

Why java is platform independent?