Object Oriented Software Engineering   View all facts   Glossary   Help
subject > component > module > Java module > Java class > Java collection class
Next Java classJava public class    UpJava class    Previous Java classJava class that imports a package   

Java collection class comparison table
Subject be consist of have methods have purpose use
ArrayListabstract if it has one or more abstract methods set, add and removeto allow you to build collections of objects that grow as more objects are addediterator methods for doing something with every member of the collection
LinkedListmore efficient than ArrayList and Vector for operations such as inserting an element in the middle  working with collections of objectsiterator methods for doing something with every member of the collection
Stringabstract if it has one or more abstract methodsa collection of characters working with collections of objectszero-based indexing
Vectorabstract if it has one or more abstract methods  working with collections of objectsiterator methods for doing something with every member of the collection

Next Java classJava public class    UpJava class    Previous Java classJava class that imports a package