Java vs. C#

Exception


Java
 
ArithmeticException
ArrayIndexOutOfBoundsException
NullPointerException
OutOfMemoryException
ClassCastException

C#
 
ArithmeticException
IndexOutOfRangeException
NullReferenceException
OutOfMemoryException
InvalidCastException