多态“封装”通过合并特征和行为来创建新的数据类型。“多态”的作用则是消除类型之间的耦合关系。方法调用绑定定义:将一个方法调用同一个方法主题关联起来被称为绑定。若在程序执行前进行绑定(假设有的话,由编译器和链接程序实现),叫前期绑定。在执行时依据对象的类型进行绑定称为后期绑定,或执行时绑定。java中...
分类:
编程语言 时间:
2015-02-20 18:33:00
阅读次数:
163
Usually when desgin a web page, we think building the page in grid.Bootstrap can help us to do that.It divides the page into 12 cols. In the picture, ...
分类:
其他好文 时间:
2015-02-16 18:16:12
阅读次数:
639
Max Sum Plus Plus
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 18190 Accepted Submission(s): 5955Problem Description
Now I think you ha...
分类:
其他好文 时间:
2015-02-13 23:44:20
阅读次数:
374
主要参考 两个http://blog.csdn.net/think_soft/article/details/7272869http://www.cnblogs.com/purediy/p/3276545.html拥有Fragment的Activity的生命周期直接影响了其中的Fragment的生命...
分类:
其他好文 时间:
2015-02-13 10:03:05
阅读次数:
168
This article introduces an approach to enhance web interface security on OpenWrt. Though it acts clumsy somewhere, it is a useful reference for some guys seeking similar solutions, I think…
And, many thanks to the guys sharing their achievements which inv...
分类:
Web程序 时间:
2015-02-10 13:22:35
阅读次数:
445
1. finally能做什么?
当要把除内存之外的资源恢复到它们的初始状态时,就要用到finally子句。这种需要清理的资源包括:已经打开的文件或网络连接
2. 子类覆盖父类方法的时候,不能抛出比父类更多的异常
3. 异常处理的一个重要目标是把错误处理的代码同错误发生的地点相分离,这使你能在一段代码中专注于要完成的事情,至于如何处理错误,则放在另一段代码中完成。...
分类:
编程语言 时间:
2015-02-09 23:07:09
阅读次数:
263
1.各种map的区别
HashMap: 没有按照任何明显的顺序来保存其元素(同HashSet)
TreeMap:按照比较结果的升序保存key(同TreeSet)
LinkedHashMap:按照插入顺序保存key(同LinkedHashSet)
2.ListIterator是一个更为强大的Iterator的子类型,Iterator只能向前移动,但是ListIterator可以双向移动...
分类:
编程语言 时间:
2015-02-09 00:49:11
阅读次数:
207
Problem Description
Now I think you have got an AC in Ignatius.L's "Max Sum" problem. To be a brave ACMer, we always challenge ourselves to more difficult problems. Now you are faced with a more difficult problem.
Given a consecutive number sequence S1, S...
分类:
其他好文 时间:
2015-02-08 09:09:37
阅读次数:
188
The best way I can think of is to intercept the form-submit action, and convert the form details into XML format, and then submit that to the server. ...
分类:
Web程序 时间:
2015-02-06 23:06:42
阅读次数:
207
/** * */package log4j;import org.apache.log4j.Logger;import org.apache.log4j.PropertyConfigurator;/** * @author think * */public class HelloLog4j { .....
分类:
其他好文 时间:
2015-02-06 16:21:25
阅读次数:
123