摘要: 1、线程概念 创建好了自己的线程类之后,就可以创建线程对象了,然后通过start()方法去启动线程。注意,不是调用run()方法启动线程,run方法中只是定义 需要执行的任务,如果调用run方法,即相当于在主线程中执行run方法,跟普通的方法调用没有任何区别,此时并不会创建一个新的线程来执行定义的任 阅读全文
posted @ 2016-11-04 17:13 Kevin1207 阅读(166) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("Hello World!"); System.out.println(); 一、java中的关键字 Java 阅读全文
posted @ 2016-11-04 17:12 Kevin1207 阅读(282) 评论(0) 推荐(0) 编辑