Oracle 1Z0-808 Exam question no. 57

Q.– Given the code fragment: 

public static void main(String[] args) { 
          LocalDate date = LocalDate.of (2012, 1, 30);
          date.plusDays(10);
          System.out.println(date);
}

What is the result? 

A) A DateTimeException is thrown at runtime. 

B) 2012-01-30 

C) 2012-02-10 

D) 2012-02-10 00:00

⧪ please give your answer in a comment section.

Post a Comment

2 Comments