Gaelle Berton

Greenhorn
+ Follow
since Mar 24, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Gaelle Berton

yes it is this same exam practice book:

...
..


12 years ago
i stumbled across this in the practice exam book of Sierre Bates


the code compiles:

Shouldnt the "size" variable be declared before the constructor uses it? why doesnt it matter?
thanks
12 years ago
Eureka!

Yes, clearer, i think i was confused with the for each loop, thinking the first element was an iterator, whereas "ell" is the value of the element at the position in the array, not the position itself, well, i think. Thank you for your patience!
13 years ago
Why doesn't the last object get added to the array?
13 years ago
This is a question from the SCJP practice exam book (OCJP/SCJP: OCP Java SE 6 Programmer Practice Exams by Kathy Sierra and Bert Bates),
I did re write it to get the output and i the new Long(5L) object isnt in the array for a reason that i dont grasp. So I was wondering whether it was from the Long format, but apparently not.
13 years ago
I was studying and stumbled on this exercise :




What leaves me perplex is that "new Long(5L)" doesnt make it to the stocks array, why?
I am not so sure either what the L stands for does Long(5L) == Long(5) == 5L ?
13 years ago