If i remember correctly in .NET one can register \"global\" handlers for unhandled exceptions. I am wondering if there is something similar for Java.
Assuming it is like catch(...) in C++ you would do:
try { // your code here } catch(Throwable ex) { // any sort of exception, even if the VM has choked on a peanut }
In general this isn't a good idea unless you are dealing with 3rd party code (you should try to always throw subclasses of Exception (and not RuntimeException) in your own code - unless it indicates a programmer error that should be delt with via unit testing.