Collections Java Tutorial

public  boolean equals(Object o)
Two vectors are defined as equals if both vectors are the same size and all elements at
corresponding positions are equal.

import java.util.Vector;
public class MainClass {
  public static void main(String args[]) {
    Vector v1 = new Vector();
    v1.add("A");
    v1.add("B");
    v1.add("C");
    Vector v2 = new Vector();
    v2.add("A");
    v2.add("B");
    System.out.println(v1.equals(v2));
  }
}
false