Question d’entretien chez PTC

Why java is more safer than c++