I have the following code:
public static void main(String args)
private static void willItThrowException() throws RuntimeException
throw new RuntimeException();
Not that I'm aware of, and I can't find one. Catching runtime exceptions is not always a good choice though. And you will get tons of warnings about catching
NullPointerException. Runtime exceptions are usually meant not to be recoverable from.