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.
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.
2 Comments
A
ReplyDeleteA
ReplyDelete