Which are the most frequent exceptions thrown in Java applications? [on hold]
- by Chris
1.
Do you know of any statistics about the frequency of exceptions (checked and unchecked) thrown at runtime in typical Java applications?
for example:
NullPointerException: 25% of all exceptions
ClassCastException: 15% of all exceptions
etc.
2.
Which are the most frequent exceptions according to your own experiences?
3.
Would you agree that the NullPointerException is generally the most often thrown exception?
I am asking this question in the context of the compiler development of the PPL programming language (www.practical-programming.org).
The goal is to auto-detect a maximum of frequent exceptions at compile-time.
For example, detecting all potential NullPointerExceptions at compile-time leads to null-safe software which is more reliable.