PTC Interview Question

Why java is platform independent?