Trace the following method given graduationYear = 2022 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));
}
2027
  • 2022
  • 1007
  • 2017

There are no hints for this question