About Question enthuware.ocpjp.ii.v11.2.1449 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
philippe
Posts: 26
Joined: Sun Jul 16, 2017 4:24 pm
Contact:

About Question enthuware.ocpjp.ii.v11.2.1449 :

Post by philippe »

Another problem with this code:

Code: Select all

LocalDate d = LocalDate.now();
DateFormat df = new DateFormat(DateFormat.LONG);
System.out.println(df.format(d));
Is that the format method of DateFormat takes a Date and not a LocalDate.

admin
Site Admin
Posts: 10384
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.ii.v11.2.1449 :

Post by admin »

Right. Added to the explanation.
thank you for your feedback!

philippe
Posts: 26
Joined: Sun Jul 16, 2017 4:24 pm
Contact:

Re: About Question enthuware.ocpjp.ii.v11.2.1449 :

Post by philippe »

Could it be added in added in question bank 1z0-816 too?

admin
Site Admin
Posts: 10384
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.ii.v11.2.1449 :

Post by admin »

Done.

ftejada
Posts: 8
Joined: Mon Jan 28, 2019 2:00 pm
Contact:

Re: About Question enthuware.ocpjp.ii.v11.2.1449 :

Post by ftejada »

DateTimeFormat is not a JDK class, perhaps the question was meant to refer to the java.time.format.DateTimeFormatter class instead? Which indeed does not expose any public constructor.

admin
Site Admin
Posts: 10384
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.ii.v11.2.1449 :

Post by admin »

You are right. It should be DateTimeFormatter.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests