3:41 am - Monday June 25, 2018

Vector Example Program for hashCode()

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044
/**
@AUTHOR:candid java.com
@DESCRIPTION::  Returns the hash code value for this Vector.
*/
import java.util.Vector;
public class Hash
{
 public static void main(String args[])
{
 Vector v1 = new Vector();
  v1.add("A");
  v1.add("B");
  v1.add("C");
  System.out.println(v1.hashCode());
  }
  }

Output:
94369

Filed in: Z-A All Java Codes

Comments are closed.