Category: LIST

ArrayList Hierarchy

how to use arraylist in java

The java.util.ArrayList class is one of the most commonly used classes in the Collection Framework. Array List is an implementation that stores elements in a backing array. The array’s size will be automatically expanded...

Iterators in java

Iterators in Java

In Java, Iterator is an interface available in Collection framework in java.util package. It is a Java Cursor used to iterate a collection of objects. They are used in Java to retrieve elements one by one....

Vector Class in Java

Vector Class in Java

Vector is a concrete class in Collection Framework. It is a dynamic representation of array and is synchronized. Since the vector is synchronized so it is a better choice for thread-safe operation. Synchronization is...

vector_methods

Methods in Vector Class

Collections Framework in Java has a Vector class. This Vector class has very useful methods, lets see some of the methods in Vector Class with examples. Example-1: Vector accepts an object like btn are...