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