Jeanne Boyarsky wrote:
I'm not catching the distinction. I have "time falls back and we experience the hour from 1:00am to 1:59am" and you are prosing "time falls back from 1:59am to 1:00am". Both say that time falls back. Both say that it is 1am after time falls back. These sound equivalent to me. What am I missing here?
Jeanne Boyarsky wrote:
"time falls back..."
Jeanne Boyarsky wrote:
"... and we experience the hour from 1:00am to 1:59am"
Jeanne Boyarsky wrote:
You found an errata. This is wrong. We experience 1-1:59am twice. The diagram on page 251 has it correct. I just added this to the errata and credited you.
When we change our clocks in November, time falls back and we experience the hour from 2:00 a.m. to 2:59 a.m. Children learn this as spring forward in the spring and fall back in the fall
Suppose that we have the following property files and code. Which bundles are used on lines 8 and 9 respectively?
Dolphins.properties
name=The Dolphin
age=0
Dolphins_en.properties
name=Dolly
age=4
Dolphins_fr.properties
name=Dolly
...
Campbell Ritchie wrote:Please tell us which book it is as well as the question number. That reduces problems about copyright and makes it easier for us to find the original.
Campbell Ritchie wrote: I find it surprising that you think that isn't part of the result.
18. What is the result of the following?
A. 1
B. 2
C. 2.4
D. 1.2 and 2.4
E. There is no output.
F. The code does not compile.
G. An exception is thrown.
1 : something that results as a consequence, issue, or conclusion; also : beneficial or tangible effect : fruit
2 : something obtained by calculation or investigation
John Schubert wrote:From chapter 3, Review question #1:
Suppose that you have a collection of products for sale in a database and you need to display those products. The products are not unique. Which of the following collection classes in the package best suit your needs for this scenario?
A. Arrays
B. ArrayList
C. HashMap
D. HashSet
E. LinkedList
My answer: A,E
Correct answer:A
According to the solution, and no further explanation is given."LinkedList is both a list and a Queue"
In my opinion LinkedList is perfectly fine for the job, and you would chose it over ArrayList if you needed to access it in a sequential manner rather than randomly. Which would be the case if there was a GUI showing the products in a form style, like Access does (there is a database, so why wouldn't there be a GUI?). Now for a normal console printout, granted it would be less performant, but there are other questions where Vector is shown to implement List as well, albeit it has all the synchronization overweight, and is given as valid, so I think any List would be a correct answer here, considering the question has multiple possible answers.
The excuse given in the answer, that LinkedList does not qualify for being also a Queue, is a poor one, for we don't care which other functionality does a class offer as long as it covers our use case.
I find this answer arbitrary and unfair. I really hope Oracle doesn't come up with questions like these in the real exam.
Suppose that you have a collection of products for sale in a database and you need to display those products. The products are not unique. Which of the following collection classes in the package best suit your needs for this scenario?
A. Arrays
B. ArrayList
C. HashMap
D. HashSet
E. LinkedList
, and no further explanation is given."LinkedList is both a list and a Queue"
Paul Anilprem wrote:Composition requires having an instance of some class as a field of your class, instead of extending that class. Whether that field is public or private and whether there is a method that makes that field accessible to other classes or not is irrelevant.
Jeanne Boyarsky wrote:I think you are reading into this
Which of the following statements about inheritance and object composition are correct? (Choose all that apply.)
...
E. Object composition requires a class variable to be declared public or accessible from a public method to be used by a class in a different package.
...
object composition has no notion of inheritance and variables must be exposed publically if they are to be used by other classes in different packages
Frits Walraven wrote:Hi John,
Congratulations! Well done, and it is good to hear that you could use my notes.
Frits Walraven wrote:
Please share with me the errors that you found, so that I can correct them.
Frits
Sam Hazim wrote:Just a question about this - I thought Threads were taken off scope - I assume that's not the case then, and Threads are still on the exam?
mark juszczec wrote:I'll second the "zen mind" thing. I've been programming in Java since 2000 and thought I'd be ready for this in a matter of weeks.