When a null pointer exception occurs it immediately kills the program, without the need to add throw declarations to all methods.
I am looking for this kind of behaviour for some of my own exceptions. They are critical. If they can occur my program as a whole becomes useless, even if I would catch them. Hence I don't want to catch them, but want to see them immediately. I also don't want to spoil the code by adding throw declarations up to the root of the method tree.
How is this done in Java? In other languages there is the exit() command, but with the disadvantage of not getting the full stack trace of exceptions.