摘要:
异常 运行中出现的不期而至的状况 参数,网络,文件,操作错误等引起的 检查性异常 运行时异常 错误ERROR 关键字:try catch throw throws finally 抛出异常: throw主动抛出异常 throws用于方法上抛出异常 捕获异常:catch try {//监视区域 Sys 阅读全文
摘要:
面向对象oop 以类的方式组织代码,以对象的形式封装数据。 类是一个模版:抽象,对象是一个具体的实例 public class demo02 { public static void main(String[] args) { //静态方法 static student.say(); //类名+方法 阅读全文