Brecht Geeraerts wrote:I understand that since Java 8 there is a new Date & Time API. The release of Java 8 is already quite some time ago. Does the exam today also contain questions about the older Date and Time classes?
Piet Souris wrote:Knowledge of the old Date and Calender API is not required. A good thing, for the new classes are much easier to use.
I'd like to be really clear on what "old" means here.
We've had the java.util.Date and Calendar classes for a long time. They pre-dated Java 8 and really are "old". These classes are not on the exam.
Java 8 introduced classes like LocalDate and LocalTime. While Java 8 has been out for a number of years, these are the current classes. If you were writing code in Java 11 or 12 and wanted a date, you'd use LocalDate. These are not old. They are also on OCA 8 and OCP 8 exams!
Finally, note that the OCA 8 and OCP 8 cover Java 8. Three years from now, they will be three years older and cover the same material. The version of the exam is tied to the version of Java it targets.