上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 28 下一页
  2016年5月24日
摘要: Reference是java中的特殊引用类。描述的是特殊作用(主要是关于垃圾回收对象)的引用。 它有3个子类: 1.SoftReference; 2.WeakReference 3.PhantomReference 先看thinking in java 中的实例 output: Just creat 阅读全文
posted @ 2016-05-24 19:03 WesTward 阅读(356) 评论(0) 推荐(0) 编辑
  2016年5月23日
摘要: 代码摘自《thinking in java》4td 此实例非常好的总结了Collections的一些常见方法的使用。 output:[one, two, three, four, five, six, one]'list' disjoint (Four)?: truemax: twomin: fiv 阅读全文
posted @ 2016-05-23 22:39 WesTward 阅读(810) 评论(0) 推荐(0) 编辑
摘要: 两个小示例 demo1 demo2 参考反编译文件 阅读全文
posted @ 2016-05-23 19:20 WesTward 阅读(181) 评论(0) 推荐(0) 编辑
  2016年5月19日
摘要: 成员变量: 可以被 public,static ,protected,default,final修饰。 局部变量:包括方法里的和 代码块里的(静态和非静态) 可以被default, final修饰 参考: http://www.blogjava.net/kermart/archive/2012/07 阅读全文
posted @ 2016-05-19 19:23 WesTward 阅读(1856) 评论(0) 推荐(0) 编辑
摘要: http://rainyear.iteye.com/blog/1467217 阅读全文
posted @ 2016-05-19 19:01 WesTward 阅读(154) 评论(0) 推荐(0) 编辑
摘要: http://greateryang.blog.163.com/blog/static/81953375201232621031508/ 阅读全文
posted @ 2016-05-19 17:19 WesTward 阅读(315) 评论(0) 推荐(0) 编辑
摘要: http://liqita.iteye.com/blog/1676664 阅读全文
posted @ 2016-05-19 16:03 WesTward 阅读(96) 评论(0) 推荐(0) 编辑
  2016年5月18日
摘要: Constructor类是java反射中重要的类,它是对类中构造器的描述的类。类似于Method(对类中方法的描述的类),Field(对类中属性的描述的类)。 通过创建Constructor的对象实例,我们可以创建源对象。 小测试demo: output:Car()Car(i) running ru 阅读全文
posted @ 2016-05-18 22:00 WesTward 阅读(1008) 评论(0) 推荐(0) 编辑
摘要: ListIterator是什么? (参考自百度百科) java中的ListIterator在Iterator基础上提供了add、set、previous等对列表的操作。但是ListIterator跟Iterator一样,仍是在原列表上进行操作。 Iterator源代码: ListIterator源代 阅读全文
posted @ 2016-05-18 00:01 WesTward 阅读(333) 评论(0) 推荐(0) 编辑
  2016年5月16日
摘要: java程序操作数据库的时候,遇到死锁:java.sql.SQLException: ORA-00060: 等待资源时检测到死锁 解决步骤: 1.找到死锁的oralce对象(表): select object_name,machine,s.sid,s.serial#from v$locked_obj 阅读全文
posted @ 2016-05-16 16:05 WesTward 阅读(198) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 28 下一页