In the below code, Is there any way i can debug hashcode and equals methods implementation code.If yes, Where i need to put the break point.
PS: I have already attached the java source code(src.zip)
public static void main(String[] args)
{
List<String>list=new ArrayList<String>();
list.add("ff");
list.add("gg");
System.out.println(list.hashCode());
List<String>list1=new ArrayList<String>();
list1.add("ff");
list1.add("gg");
System.out.println(list1.hashCode());
System.out.println(list.equals(list1));
System.out.println(list.hashCode()==list1.hashCode());
}
Thanks, Vivek