public int compare(Employee obj1, Employee obj2)//1 It compiles fine in JDK 1.5 and the output is : ------------------ Daisy of age 22 Daisy of age 40 George of age 29 Jacob of age 30 -----------------=