Java try/catch

This is a little example about try and catch in Java:

Output looks like: