zoukankan      html  css  js  c++  java
  • 最近遇到的异常与错误总结

    异常
    NumberFormatException  数字格式化异常
    ArithmeticException 算术异常
    ArrayIndexOutOfBoundsException  数组超出绑定异常:没有输入参数,或输入的参数不够
    NullPointerException 空指针异常:使用了未实例化的对象
    NoSuchMethodError:main  找不到主方法
    ClassCastExeption:A 类转换异常
    IllegalThreadStateException:非法的线程状态异常
    IOException: IO流异常


    错误
    integer number too large
    name has private access in Person 无法访问封装属性
    call to this must be first statement in constructor  错误的调用,只能放在构造方法的首行
    recursive constructor invocation 递归调用了构造方法
    non-static variable name cannot be referenced from a static context  不能调用非static属性
    non-static method fun() cannot be referenced from a static context 不能调用非static方法
    Singleton() has private access in Singleton 无法实例化
    print() in Student cannot override print() int Person; attempting to assign weaker access privileges; was public 覆写父类中的方法,便缩小了权限,错误
    cannot inherit from final A
    print() in B cannot override print() in A; overridden method is final
    cannot assign a value to final variable INFO
    OutOfMemoryError:

  • 相关阅读:
    人类思考的基本形式
    晚上睡不者原因
    东西方哲学比较
    逻辑推理的三种方法
    锻炼自己的注意力和逻辑思维能力
    预测和复盘自己的投资策略
    概念:名与实
    没有“界定问题”会出现什么问题
    问题、联系-条条大路通罗马
    程序问题调试与医生、汽车维修师
  • 原文地址:https://www.cnblogs.com/huguangqin/p/7124020.html
Copyright © 2011-2022 走看看