Page 1 of 1

About Question enthuware.ocajp.i.v8.2.1365 :

Posted: Wed Nov 23, 2016 6:23 am
by roosdebie
Question:
I've seen quite some questions on Enthuware where they ask things, which are NOT mentioned in the 'Oracle certified Associate Java SE8, OCA' book from Jeanne Boyarsky.

For example:
SecurityException extends RuntimeException: It is thrown by the security manager upon security violation. For example, when a java program runs in a sandbox (such as an applet) and it tries to use prohibited APIs such as File I/O, the security manager throws this exception. Since this exception is explicitly thrown using the new keyword by a security manager class, it can be considered to be thrown by the application programmer.

and:

public class CloneNotSupportedException extends Exception Thrown to indicate that the clone method in class Object has been called to clone an object, but that the object's class does not implement the Cloneable interface. Applications that override the clone method can also throw this exception to indicate that an object could not or should not be cloned.

--> these Exceptions are nowhere in the book.

Even so, this code:
public class TestClass{
public static int getSwitch(String str){
return (int) Math.round( Double.parseDouble(str.substring(1, str.length()-1)) );
}

Ive never seen Math.round()

These kind of things that I see on the Enthuware; could they be asked on the official exam? Should this for people be 'common knowledge'?
As I am new to programming, I use the book as a "this is what i should learn" guideline.
However, sometimes the Enthuware exams are giving me doubts about my guideline...

I hope to hear from you admin,

Greetings
Roos

Re: About Question enthuware.ocajp.i.v8.2.1365 :

Posted: Wed Nov 23, 2016 6:53 am
by admin
Hi,
Yes, you should know about the exceptions and the round method but only as much as is given in our explanations.

We take feedback from exam takers and based on that we incorporate questions into our question bank. So it may seem that our questions sometimes refer to topics that are not explicitly mentioned in the exam objectives but they are there because we have observed people getting questions on them. It is easy for us to remove such questions but that will not help our users. So I would suggest you to just go through the explanations of our questions and you will be fine.

HTH,
Paul