Quick Java Q

The reaosn it's considered a bad idea is because you might want to change the exit behaviour in the future. For example you may want your exit procedure to involve a save before exit so if you have the exit code duplicated multiple times you have to update a lot more code and may even miss some instances of it. Having it centralised in one place allows you to make a single change.
 
Back
Top Bottom