Class VectorExample

java.lang.Object
topics.introduction.examples.VectorExample

public class VectorExample extends Object
Demonstrates the legacy thread-safe Vector collection. Vector is a synchronized dynamic array. In modern Java, ArrayList (unsynchronized) or CopyOnWriteArrayList (concurrent) are generally preferred.
Author:
vicegd
  • Constructor Details

    • VectorExample

      public VectorExample()
  • Method Details

    • main

      public static void main(String[] args)