About Question enthuware.ocajp.i.v8.2.1365 :
Posted: Wed Nov 23, 2016 6:23 am
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
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