It blithely ignored unimportant things like what day of the year it is today and in the DOB. Note that Java Calendar instances are zero-indexed, so Calendar.set(1990, 12, 1) sets the object to 1st January 1991, not 1st Dec 1990 (!!)