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 ?
About Question enthuware.ocpjp.v8.2.1429 :
Moderator: admin
-
- Posts: 124
- Joined: Wed Feb 12, 2014 2:44 am
- Contact:
-
- Site Admin
- Posts: 10066
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1429 :
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.
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.
Who is online
Users browsing this forum: No registered users and 224 guests