I post in attachment a question whose result I cannot fully understand.
In particular the third check point (option E):
Class Benefits2 uses some of the Java API outside of java.lang
My humble point of view is that Benefits2 uses an int for counter and a String for bene and anything else.
In TestBenes Benefits2 IS USED BY a java.util.ArrayList to populate itself. Benefits2 is used by ArrayList and doesn't use ArrayList.
So option E should not be true.
Am I missing something?
I think it means that nothing requiring an import is used by the Benefits class; the array list is only used in Benefits2. I think the answer “no” is correct for E, but maybe it isn't worded clearly. I don't know, but it might still be possible to change the question.
Jeanne Boyarsky wrote:Which book is it? THere's an errata thread for the K&B 7 book. I suspect you are actually reading the OCA 8 (since you are also reading my OCA 8 book).
Regardless, can you post a question number. And a chapter number or that it is from the mock exam.
I'm reading about OCA 8 as you supposed.
This question is cought by the interactive quiz, not by the book directly.
As Campbell said the exam application didn't show a unique id of the question, and I composed the test mixing some cerctification-objectives.
But I detected a little more de-randomizing questions and find out it's the 12th question belonging to the "Java Basics" group.
That's the best coodinates I'm able to give.