For example, many methods in frameworks/JDK might throw
java.lang.SecurityException
but this is not indicated in the method signature (si
This has to do with the discussion regarding checked exceptions. Most would agree that exceptions shouldn't be declared in methods signatures.
There is also a discussion regarding how runtime exceptions should be used. I agree with one poster that runtime exceptions should denote a programming error or a fatal condition. So there isn't much merit declaring them in the signature. Every method could potentially through one.