Given this code fragment:
What is the outcome?
LocalDate is immutable, so calling plusDays(10) does not change the existing instance. Because the returned date is ignored, printing date produces 2012-01-30.
LocalDate
plusDays(10)
date
2012-01-30
Community Discussion