黑马程序员技术交流社区

标题: Interface与abstract类的介绍、Static class与not static class的区别... [打印本页]

作者: 邓显俊    时间: 2016-8-31 23:37
标题: Interface与abstract类的介绍、Static class与not static class的区别...
Interface与abstract类的介绍Static class与not static class的区别java多态的实现原理实现多线程的两种方法:Thread与Runablepublic class Six {    public static void main(String[] args) {        MyThreadRunnable mr = new MyThreadRunnable();        new Thread(mr).start();        new Thread(mr).start();        new MyThread().start();        new MyThread().start();    }}class MyThreadRunnable implements Runnable {    @Override    public void run() {    }}class MyThread extends Thread {    @Override    public void run() {    }}





欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) 黑马程序员IT技术论坛 X3.2