想知道那些是常见的运行时异常?请列举

解决方案 »

  1.   

    java.lang.下的所有异常
    Exceptions  
    ArithmeticException 
    ArrayIndexOutOfBoundsException 
    ArrayStoreException 
    ClassCastException 
    ClassNotFoundException 
    CloneNotSupportedException 
    EnumConstantNotPresentException 
    Exception 
    IllegalAccessException 
    IllegalArgumentException 
    IllegalMonitorStateException 
    IllegalStateException 
    IllegalThreadStateException 
    IndexOutOfBoundsException 
    InstantiationException 
    InterruptedException 
    NegativeArraySizeException 
    NoSuchFieldException 
    NoSuchMethodException 
    NullPointerException 
    NumberFormatException 
    RuntimeException 
    SecurityException 
    StringIndexOutOfBoundsException 
    TypeNotPresentException 
    UnsupportedOperationException
      

  2.   

    好歹也解释一下吧
    ArrayIndexOutOfBoundsException/IndexOutOfBoundsException  一般是数组、ArrayList等的越界
    ClassNotFoundException  没有找到该类
    NullPointerException 很常见,引起该问题的种类比较多
    NumberFormatException  一般是进行数据类型转换时出现
    我一般常遇到的也就这几个了,可能有些说的不是很正确,请见谅
    也算是抛砖引玉了