jeudi 28 juillet 2016

Java: When should use if-else and when should use try...catch to handle conditional check?

I am confused. Does it depend on the concrete situation? Or it has a universal standard? Could anyone give a summary to tell me when to use if-else, and when to use try...catch?

Aucun commentaire:

Enregistrer un commentaire