Trace the following method given graduationYear = 1984 and currYear = 2020. What does nextReunion() return?

public int nextReunion() {
  int yearDiff = currYear - graduationYear;
  if (yearDiff <= 0)
      return currYear + (5 - yearDiff);
  else
      return currYear + (5 - (yearDiff % 5));
}
2024
  • 2029
  • 1989
  • 2019

There are no hints for this question