[Logo]
Forums Register Login
Oracle Press, Kathy and Bert's Benefits2 Question
Hi ranchers!
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?
Benefits2.png
[Benefits2.png]
(1 like)
I think you might be right there.
 

Campbell Ritchie wrote:I think you might be right there.



Hi Campbell,
Thank you.

Do you know if there's a way to let it know to Oracle/Mc Graw Hill or direclty to Kathy Sierra/Bert Bates?
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 didn't know those questions were visible yet.
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.



Hi Jeanne,
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.

Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards


This thread has been viewed 2151 times.

All times above are in ranch (not your local) time.
The current ranch time is
May 24, 2018 17:38:25.