the simple final project

my simple final project
Why catch NullPointerException?  what situation causes that and makes it good to catch here.