About Question enthuware.ocpjp.v7.2.1207 :
Moderator: admin
-
- Posts: 33
- Joined: Mon May 06, 2013 9:41 am
- Contact:
About Question enthuware.ocpjp.v7.2.1207 :
This question rather seems to belong in module NIO2 given that it concerns Path/Paths classes and NIO exceptions
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1207 :
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.
-Paul.
-
- Posts: 7
- Joined: Mon Jul 11, 2016 12:08 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1207 :
Hello.
For me it is a strange question because javadoc for method declares only more generic exception 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?
For me it is a strange question because javadoc for method
Code: Select all
Files.newBufferedReader
Code: Select all
java.io.IOException
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1207 :
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.
HTH,
Paul.
-
- Posts: 7
- Joined: Mon Jul 11, 2016 12:08 pm
- Contact:
Who is online
Users browsing this forum: No registered users and 9 guests