About Question enthuware.ocpjp.v7.2.1600 :
Moderator: admin
About Question enthuware.ocpjp.v7.2.1600 :
Actually, both options 1 and 3 are correct. I will not compile, plus it can't throw IOException.
Online
-
- Site Admin
- Posts: 10398
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1600 :
That way, "Overriding method may choose not to throw any exception." is also correct but there is no overriding method given in the code. So before the question of exception arises, you need to see if there is any other error or not.
HTH,
Paul.
HTH,
Paul.
-
- Posts: 53
- Joined: Fri Sep 20, 2013 7:20 am
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1600 :
Very sneaky question, hmmph 

-
- Posts: 9
- Joined: Mon Nov 11, 2013 3:11 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1600 :
Is the exam as sneaky and ambiguous ??
Online
-
- Site Admin
- Posts: 10398
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1600 :
Not all the question on the exam will be so sneaky but yes, there are questions like that so you need to be prepared.
HTH,
Paul.
HTH,
Paul.
Who is online
Users browsing this forum: No registered users and 8 guests