摘要:
多线程 创建线程方式一:继承Thread类,重写run()方法,调用start开启线程 public class TestThread1 extends Thread { @Override public void run() { //run方法线程体 for (int i = 0; i < 200 阅读全文
摘要:
异常机制 异常类型: 检查性异常 运行时异常 错误ERROR 异常的关键字 try,catch,finally,throw,throws public class Test { public static void main(String[] args) { int a = 1; int b = 0 阅读全文