Page 1 of 1

About Question enthuware.ocpjp.v7.2.1207 :

Posted: Fri Jan 02, 2015 10:29 am
by bptoth
This question rather seems to belong in module NIO2 given that it concerns Path/Paths classes and NIO exceptions

Re: About Question enthuware.ocpjp.v7.2.1207 :

Posted: Fri Jan 02, 2015 9:10 pm
by admin
Since the code deals with reading of a file, it is categorized in File I/O - Streams. I checked other objectives related to NIO, but no one fits that well.
-Paul.

Re: About Question enthuware.ocpjp.v7.2.1207 :

Posted: Mon Jul 18, 2016 11:32 am
by aaaqwert
Hello.

For me it is a strange question because javadoc for method

Code: Select all

Files.newBufferedReader
declares only more generic exception

Code: Select all

java.io.IOException
and therefore the actual type of exception should be treated as implementation detail. Are you sure that there are such kind of questions on the exam?

Re: About Question enthuware.ocpjp.v7.2.1207 :

Posted: Mon Jul 18, 2016 12:10 pm
by admin
What you say is true. But yes, based on feedback from the users, in our opinion, you need to know this that is why we have included it.
HTH,
Paul.

Re: About Question enthuware.ocpjp.v7.2.1207 :

Posted: Mon Jul 18, 2016 12:19 pm
by aaaqwert
Thank you!