Code Room
Code reviewMediumcr-g112
Subject Date arithmeticLevel Mid–Senior~25 minCommon in Code quality & review interviewsIndustries Software development

Question

Review this Java helper that computes a subscription anniversary one month out.

What a strong answer looks like

Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.

Talk through your review
Code to reviewjava
import java.util.Calendar;import java.util.Date; public Date oneMonthLater(Date start) {    Calendar c = Calendar.getInstance();    c.setTime(start);    c.set(Calendar.MONTH, c.get(Calendar.MONTH) + 1);    return c.getTime();} // oneMonthLater(Jan 31) ?
Run or narrate your approach, then ask the coach.