摘要:
package com.thread.demo01; //创建线程方式2:实现runnable接口,重写run方法,执行线程需要丢入runnable接口实现类,调用start public class TestThread3 implements Runnable{ @Override public 阅读全文
摘要:
java.lang.Throwable 异常处理机制:抛出异常 捕获异常 异常处理的五个关键词:try catch finally throw throws package com.exception; public class Test { public static void main(Stri 阅读全文
摘要:
package com.oop; import com.oop.demo10.Outer; public class Application { public static void main(String[] args) { //外部 new Outer outer = new Outer(); 阅读全文
摘要:
package com.oop.demo07; //static public class Student { private static int age;//静态变量 private double score;//非静态变量 public void run(){ } public static 阅读全文