java中和与数组有哪些异同点,Java的集合框架包括那些接口,这些接口的常见接口和实现类
问题太大需拆细。Interface Collection接口大致有:
add(E e)
addAll(Collection c)
clear()
contains(Object o)
containsAll(Collection c)
isEmpty()
iterator()
remove(Object o)
removeAll(Collection c)
retainAll(Collection c)
size()
toArray()
toArray(T[] a)
常见的实现类有个继承关系
1。
核心类List、Set、Map;
2。
继承关系
Collection<--List<--Vector
Collection<--List<--ArrayList
Collection<--List<--LinkedList
Collection<--Set<--HashSet
Collection<--Set<--HashSet<--LinkedHashSet
Collection<--Set<--SortedSet<--TreeSet
Map<--SortedMap<--TreeMap
Map<--HashMap。
答:(1)数组定义时,顺序列出数组全部元素的初值。 (2)只给数组的前面一部分元素设定初值。 (3)当对数组的全部元素都明确设定初值时,可以不指定数组元素的个数。详情>>
答:google "java 缓冲池"详情>>
答:百度里搜张孝祥 非常好的视频教程详情>>