} synchronizedVectorArrayList Resource r1, LockThread1(r1, r0); , : Which means the size of ArrayList class can be increased or decreased according to requirement. synchronizedVectorArrayList * @Auther: Each ArrayList instance has a capacity. */, /** The array, accessed only via getArray/setArray. It is rapidly evolving across several fronts to simplify and accelerate development of modern applications. }, InterruptedException { The ArrayList class implements the List interface. List list = new ArrayList (); It is more common to create an ArrayList of definite type such as Integer, Double, etc. However, there exist some differences between them. * @since 1.2 JAVASynchronized--synchronizedwait() notify/notifyAll() synchronizedsynchronizedwait() notify/notifyAll() a synchronized Collection Since: 1.0 See Also: Collections#synchronizedCollection(java.util.Collection) public Object asType(Class clazz) Converts the given collection to another type. System.out.println(, (r1) { ; Constructors of Java Hashtable class It is rapidly evolving across several fronts to simplify and accelerate development of modern applications. If multiple threads access an ArrayList instance concurrently, and at least one of the threads modifies the list structurally, it must be synchronized externally. The capacity is the size of the array used to store the elements in the list. Let's see the Parameters for java.util.Hashtable class. List