java
文章平均质量分 81
hinstriven
这个作者很懒,什么都没留下…
展开
-
Java 深拷贝和浅拷贝
一、引言 对象拷贝(Object Copy)就是将一个对象的属性拷贝到另一个有着相同类类型的对象中去。在程序中拷贝对象是很常见的,主要是为了在新的上下文环境中复用对象的部分或全部数据。Java中有三种类型的对象拷贝:浅拷贝(Shallow Copy)、深拷贝(Deep Copy)、延迟拷贝(Lazy Copy)。二、浅拷贝 1、什转载 2014-11-14 12:03:06 · 490 阅读 · 0 评论 -
HashSet vs. TreeSet vs. LinkedHashSet
A Set contains no duplicate elements. That is one of the major reasons to use a set. There are 3 commonly used implementations of Set: HashSet, TreeSet and LinkedHashSet. When and which to use is an i转载 2014-11-17 15:02:23 · 434 阅读 · 0 评论 -
Difference between Comparator and Comparable in java
One of the common interview question is "What are differences between Comparator and Comparable". or "How will you sort collection of employee objects by its id or name".For that we can use two interf转载 2014-11-18 17:29:55 · 454 阅读 · 0 评论 -
ArrayList vs. LinkedList vs. Vector
ArrayList vs. LinkedList vs. Vector By X Wang1. List OverviewList, as its name indicates, is an ordered sequence of elements. When we talk about List, it is a good ide转载 2014-11-17 17:33:05 · 448 阅读 · 0 评论 -
JDBC - Driver Types(JDBC - Driver图解)
JDBC Drivers Types:JDBC driver implementations vary because of the wide variety of operating systems and hardware platforms in which Java operates. Sun has divided the implementation types into fo转载 2014-12-05 14:29:09 · 542 阅读 · 0 评论