About Question enthuware.ocajp.i.v8.2.1428 :
Moderator: admin
-
- Posts: 30
- Joined: Tue Mar 24, 2015 2:59 pm
- Contact:
About Question enthuware.ocajp.i.v8.2.1428 :
I tested, A is also correct answer together with C.
-
- Site Admin
- Posts: 10386
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1428 :
Please go through the explanation. It explaines exactly why it is not valid.
-
- Posts: 2
- Joined: Mon Jun 01, 2015 9:32 am
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1428 :
The question is :
Which of the following are valid ways to create a LocalDateTime?
And option A is: java.time.LocalDate.parse("2015-01-02"); Which creates a LocalDate object instead of the LocalDateTime that the question is asking for!

Which of the following are valid ways to create a LocalDateTime?
And option A is: java.time.LocalDate.parse("2015-01-02"); Which creates a LocalDate object instead of the LocalDateTime that the question is asking for!

-
- Posts: 10
- Joined: Fri Mar 06, 2020 5:18 am
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1428 :
Yes, A is correct too...
-
- Site Admin
- Posts: 10386
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1428 :
Why do you think so? Did you read the posts above?
Who is online
Users browsing this forum: No registered users and 8 guests