Page 1 of 1
About Question enthuware.ocajp.i.v7.2.1385 :
Posted: Tue Oct 07, 2014 5:44 pm
by Daniel Clinton
The type MySpecialException is not declared.
This code doesn't compile.
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
MySpecialException cannot be resolved to a type
Re: About Question enthuware.ocajp.i.v7.2.1385 :
Posted: Tue Oct 07, 2014 7:37 pm
by admin
The question says, "(Assume that MySpecialException is an unchecked exception.)". So you need to assume that it exists.
To make it compile, you can add the following code:
class MySpecialException extends RuntimeException{}
Re: About Question enthuware.ocajp.i.v7.2.1385 :
Posted: Tue Oct 07, 2014 8:04 pm
by Daniel Clinton
It doesn't say this in the question. It's missing.
Shall I email a screenshot?
Re: About Question enthuware.ocajp.i.v7.2.1385 :
Posted: Tue Oct 07, 2014 9:08 pm
by admin
It was fixed only a few days ago. Please redownload the ets file from our website.
Re: About Question enthuware.ocajp.i.v7.2.1385 :
Posted: Wed Oct 08, 2014 9:11 am
by Daniel Clinton
Got it thanks!

Was using the test software so much
that I never restarted it
so didn't catch the bank update notification
Thanks very much for taking the time to respond so quickly to each post
This product+forum is very helpful indeed
Cheers guys
Re: About Question enthuware.ocajp.i.v7.2.1385 :
Posted: Sun Aug 02, 2015 3:56 pm
by jadam81
Wouldn't this method require a throws statement to work? I had chose it would not compile based on that.
16. static void doSomethingElse() {
17. throw new MySpecialException("Sorry, can't do something else");
18. }
Re: About Question enthuware.ocajp.i.v7.2.1385 :
Posted: Sun Aug 02, 2015 8:12 pm
by admin
No, there is no need for a throws statement because the question says that MyException is an unchecked exception.