Originally posted by Najmunnisa Sageer: Hi, First of all let me thank for the free online John Meyers mock exam.This exam has helped me a lot in improving my generics knowledge. In one of the mock question class test { int x; test(int input) { x = input; } public static void main( String args[] ) { System.out.println( new test(3).equals(new test(3)) ); } public boolean equals( Object o) { return ( (test)o ).x == x;// 1 } } Its a compiler error on the line 1 and the answer is displayed as "Prints true". Najmunnisa Sageer.