java collections framework Summary

Table 1. Linear

1.1 java.util Interface List

  • View description of the interface;
  • The interface has to understand what is known to achieve sub-class, focus ArrayList<E>, LinkedList<E>, Vector<E>;
  • What abstract way to understand an interface List

1.2 java.util class ArrayList

  • Description See class, figure out the underlying implementation
  • This class has to know which method of operation

1.3 java.util class LinkedList

  • Description See class, figure out the underlying implementation
  • This class has to know which method of operation

1.4 java.util Class Vector

  • Description See class, figure out the underlying implementation
  • This class has to know which method of operation

1.5 comprehensive comparison

  • Whether from the security thread, the underlying implementation, application scenarios aspects, more ArrayList<E>, LinkedList<E>, Vector<E>.

2. stacks and queues

2.1 java.util class Stack

  • Description See class, figure out the underlying implementation
  • This class has to know which method of operation

2.2 java.util Interface Queue

  • View introduce the interface, to figure out the interface characteristics
  • The interface has to understand what is known to achieve sub-class, focus PriorityQueue<E>, ArrayDeque<E>,LinkedList<E>
  • Learn what the abstract method has an interface

2.3 java.util class PriorityQueue

  • View a class, the class understand the underlying implementation
  • What class has common methods to understand

2.4 java.util 类 ArrayDeque

  • View a class, the class understand the underlying implementation
  • What class has common methods to understand

2.5 comprehensive comparison

  • From the FIFO or LIFO terms, compare Stack<E>,Queue<E>
  • From the underlying implementation, if the thread-safe, suitable scenes aspects, compare PriorityQueue<E>, ArrayDeque<E>,LinkedList<E>

3. Set

3.1 java.util interface Set

  • The interface to view reports, figure out the interface characteristics
  • The interface has to know what subclass to achieve, focus HashSet<E>,TreeSet<E>
  • Learn what the abstract method has an interface

3.2 java.util class HashSet

  • View introduce the class to understand its underlying implementation
  • Common methods to see what kind of

3.3 java.util class TreeSet

  • View introduce the class to understand its underlying implementation
  • Common methods to see what kind of

3.4 comprehensive comparison

  • From the underlying implementation, application scenarios aspects, compare HashSet<E>,TreeSet<E>

4. The key-value pairs

4.1 java.util Interface Map <K, V>

  • View introduce the interface, to figure out the interface characteristics
  • The interface has to know what subclass to achieve, focus HashMap<K,V>, TreeMap<K,V>,Hashtable<K,V>
  • Learn what the abstract method has an interface

4.2 java.util 类 HashMap<K,V>

  • View introduce the class to understand its underlying implementation
  • Common methods to see what kind of

4.3 java.util 类 TreeMap <K, V>

  • View introduce the class to understand its underlying implementation
  • Common methods to see what kind of

4.4 java.util 类 Hashtable <K, V>

  • View introduce the class to understand its underlying implementation
  • Common methods to see what kind of

4.5 java.util Interface Map.Entry <K, V>

  • View this interface description, understand their characteristics
  • The interface to see what subclass to achieve, focus onAbstractMap.SimpleEntry<K,V>
  • See which abstract method that has an interface

4.6 java.util 类 AbstractMap.SimpleEntry<K,V>

  • View introduce the class to understand its underlying implementation
  • Common methods to see what kind of

4.7 comprehensive comparison

  • From the underlying implementation, if the thread-safe, suitable scenes aspects, compare HashMap<K,V>, TreeMap<K,V>,Hashtable<K,V>

5. String

5.1 java.lang class String

  • Learn static methods of the class and non-static methods, constructors know the simple common on the line

5.2 java.lang 类 StringBuffer

  • View introduce the class to understand the common methods of the class

5.3 java.lang 类 StringBuilder

  • View introduce the class to understand the common methods of the class

5.4 comprehensive comparison

  • Compare Stringwith StringBufferor StringBuilderdifferent
  • Comparison of thread from a security perspective StringBuffer,StringBuilder

6. I 流

6.1 java.io class InputStream

  • View introduce the interface
  • Understand the interface to achieve sub-class, focusFileInputStream
  • Learn what the abstract method has an interface

6.2 java.io FileInputStream class

  • View introduce the class to understand what kind of methods are used

6.3 java.io 类 InputStreamReader

  • View introduce the class to understand the common methods of the class

6.4 java.io 类 BufferedReader

  • View introduce the class to understand the common methods of the class

6.5 java.io class OutputStream

  • View introduce the interface
  • Understand the interface to achieve sub-class, focusFileOutputStream
  • Learn what the abstract method has an interface

6.6 java.io 类 FileOutputStream

  • View introduce the class to understand the common methods of the class

6.7 java.io 类 OutputStreamWriter

  • View introduce the class to understand the common methods of the class

6.8 java.io 类 BufferedWriter

  • View introduce the class to understand the common methods of the class

6.9 comprehensive comparison

  • From figure out how FileInputStreamto InputStreamReadertoBufferedReader
  • From figure out how FileOutputStreamto OutputStreamWritertoBufferedWriter

7. static class

7.1 java.util class Arrays

  • Learn what the class has a static method

7.2 java.util class Collections

  • Learn what the class has a static method

8. numeric string conversion

8.1 java.lang class Number

  • View introduce the abstract classes, abstract methods to understand what the abstract class has
  • Understand the abstract class has subclasses which implement, focus Double, Float, Integer, Long and Short
  • View Double, Float, Integer, Long and commonly used methods, focusing on parseXx method Short

9. System Class

  • View Abstract class field, focus in,out
  • View common class static method, focus arraycopy(), currentTimeMillis(),exit(int status)

10. The text scannerjava.util 类 Scanner

  • View a class, know the role of the class
  • View the class constructor and general method that normal focus hasNextXx(),nextXx()
  • Figure out how to receive console input, how to receive a file input, how to receive an input stream input

11. java.util classes Random

  • View introduce the class to understand the role of the class
  • Learn The constructor method, a conventional method will generate a random number

12. Comparatorjava.util 接口 Comparator<T>

  • View introduce the interface
  • Learn what the abstract method has an interface
  • Own realization of a subclass of the interface, and use the Collections.sort 或 Arrays.sortmethod for testing

13. Comparejava.lang 接口 Comparable<T>

  • Check the interface description, understand the role of the interface
  • See which abstract method that has an interface
  • Implementation subclass of this interface is comparable to view this interface which achieve sub-classes are comparable, focus Stringand value type of class
  • Implement the interface yourself a subclass, defined comparison rules, and try to sort output.

14. java.lang 类 Throwable

  • View introduce the class to understand the common methods of the class
  • Learn to achieve sub-class of this class, focus ErrorandException
  • Learn Errorand Exceptionunderstand the class method

15. java.lang Thread classes and interfaces Runnable

Guess you like

Origin www.cnblogs.com/Stephanie-boke/p/11515144.html