![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CoreJava
iteye_14260
这个作者很懒,什么都没留下…
展开
-
spring中applicationContext.xml的对于bean注入的用法
1.对于静态方法创建bean<bean id="fixedThreadPool" class="java.util.concurrent.Executors" factory-method="newFixedThreadPool"> <constructor-arg type="int" value="30"/></bean&a原创 2011-08-05 10:39:18 · 249 阅读 · 0 评论 -
ThinkingInJava持有对象(Holding Your Objects)读后总结
闲来无事,项目做多了感觉基础弱了好多,业余时间仔仔细细阅读了一遍thinkinginjava4(集合基础篇章),跑完每个Sample,写完每个Ex,总结下其中一些心得,收获不少,后续还会补上其它章节心得~~~~ 1.如果不需要使用每个元素的索引,你可以使用foreach语法来选择List中的每个元素 2. List<Apple> apples = new Li...2011-04-15 14:21:25 · 142 阅读 · 0 评论 -
ThinkingInJava持有对象(Containers in Depth)读后总结
1.对List的操作Collections.nCopies(4, new StringAddress("Hello")));//复制4份Collections.fill(list, new StringAddress("World!"));//替换容器中所有对象 2.Collection// Make an array from the List:Object...2011-04-25 04:25:38 · 112 阅读 · 0 评论 -
对String对象的操作和理解
1.字符串比较结果 String a = "abc";String b = "abc";String c = new String("abc");String d = new String("abc"); System.out.println(a == b);//trueSystem.out.println(a == c);//falseSystem.out....原创 2011-05-11 08:14:04 · 80 阅读 · 0 评论 -
类初始化顺序探究
1.本例子借用thinkingInJava第4版中文版P163中PolyConstructors.java例子修改后,说明一定问题:该类中包含:静态属性、静态代码块、成员变量、普通代码块、父子类关系、子类重写父类方法 package com.iteye.bobby.base;import static net.mindview.util.Print.*;class...原创 2011-05-15 01:13:39 · 74 阅读 · 0 评论