Lesson 6.3 · Answer it
Exception age
2 marksYou mark it yourself against the marking points
A program asks the user for their age and converts what they type into a whole number. Explain what an exception is, using this program as your example, and why the program should catch it rather than stop. [2]