About Question enthuware.ocpjp.v7.2.1207 :

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

Moderator: admin

Post Reply
bptoth
Posts: 33
Joined: Mon May 06, 2013 9:41 am
Contact:

About Question enthuware.ocpjp.v7.2.1207 :

Post by bptoth »

This question rather seems to belong in module NIO2 given that it concerns Path/Paths classes and NIO exceptions

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

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

Post 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.

aaaqwert
Posts: 7
Joined: Mon Jul 11, 2016 12:08 pm
Contact:

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

Post 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?

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

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

Post 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.

aaaqwert
Posts: 7
Joined: Mon Jul 11, 2016 12:08 pm
Contact:

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

Post by aaaqwert »

Thank you!

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests