About Question enthuware.ocpjp.v8.2.1429 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
ramy6_1
Posts: 124
Joined: Wed Feb 12, 2014 2:44 am
Contact:

About Question enthuware.ocpjp.v8.2.1429 :

Post by ramy6_1 »

Hello ,

At question enthuware.ocpjp.v8.2.1485 , you have mentioned that

"Therefore, Period.ofMonths(1).ofDays(1) will give you a Period of only 1 day. The previous call to ofMonths(1) does return an instance of Period comprising 1 month but that instance is irrelevant because ofDays is a static method."

Can you provide some explanation why the chain of calls working here in this question but it will fail in the mentioned case above ?

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

Re: About Question enthuware.ocpjp.v8.2.1429 :

Post by admin »

In this question (2.1429), we are using instance methods, while question 2.1485 uses static methods. Both are two entirely different things.
You should go through the JavaDoc API description of these methods.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 224 guests