摘要: Java多线程实现方式主要有三种:继承Thread类、实现Runnable接口、使用ExecutorService、Callable、Future实现有返回结果的多线程。其中前两种方式线程执行完后都没有返回值,只有最后一种是带返回值的。 1、继承Thread类实现多线程继承Thread类的方法尽管被 阅读全文
posted @ 2017-05-22 10:59 Jachin 阅读(271) 评论(0) 推荐(0)
摘要: create table A( id number(2) primary key, temp date); commit; insert into A values (1,to_date('2016-1-1','yyyy-mm-dd')); commit; select * from A; drop 阅读全文
posted @ 2017-05-21 11:55 Jachin 阅读(176) 评论(0) 推荐(0)
摘要: 往Oracle数据库中插入日期型数据(to_date的用法) INSERT INTO FLOOR VALUES ( to_date ( '2007-12-20 18:31:34' , 'YYYY-MM-DD HH24:MI:SS' ) ) ; 查询显示:2007-12-20 18:31:34.0 I 阅读全文
posted @ 2017-05-21 11:23 Jachin 阅读(332) 评论(0) 推荐(0)
摘要: 接口里面的变量为常量,比如定义:double PI = 3.14;其实际是 public static final double PI = 3.14接口里面的方法为抽象方法,实现该接口的类都必须实现接口里定义的方法,比如定义: public void test();其实际为:public abstr 阅读全文
posted @ 2017-05-18 22:58 Jachin 阅读(293) 评论(0) 推荐(0)
摘要: Collection FrameWork如下: Collection ├List │├LinkedList │├ArrayList │└Vector │ └Stack └Set Map ├Hashtable ├HashMap └WeakHashMap Collection是最基本的集合接口,一个Co 阅读全文
posted @ 2017-05-18 22:38 Jachin 阅读(130) 评论(0) 推荐(0)
摘要: Java code ? 1 2 3 4 5 6 7 8 9 10 public static void main(String[] args) { Integer i1=10; Integer i2=10; Integer i3=new Integer(10); Integer i4=128; In 阅读全文
posted @ 2017-05-16 23:47 Jachin 阅读(472) 评论(0) 推荐(0)
摘要: 算数-->关系-->逻辑-->赋值 阅读全文
posted @ 2017-05-16 08:42 Jachin 阅读(373) 评论(0) 推荐(0)
摘要: class A{ public A(){ System.out.println("调用A的无参构造函数"); } public A(String temp){ System.out.println("调用A的有参构造函数"+temp); }}/*使用super调用父类构造器的语句必须是子类构造器的第 阅读全文
posted @ 2017-05-16 00:18 Jachin 阅读(138) 评论(0) 推荐(0)
摘要: //break是结束整个循环体,continue是结束单次循环比方说:while(x++ < 10){ if(x == 3) { break; } printf("%d\r\n", x);}结果是输出 1 2 就退出了整个while循环但是如果使用continuewhile(x++ < 10){ i 阅读全文
posted @ 2017-05-15 23:23 Jachin 阅读(198) 评论(0) 推荐(0)
摘要: 版权声明:本文为博主原创文章,未经博主允许不得用于任何商业用途,转载请注明出处。 版权声明:本文为博主原创文章,未经博主允许不得用于任何商业用途,转载请注明出处。 目录(?)[+] 目录(?)[+] 原文:http://blog.csdn.net/luoweifu/article/details/4 阅读全文
posted @ 2017-05-15 23:10 Jachin 阅读(330) 评论(0) 推荐(0)