This week's book giveaway is in the
We're giving away four copies of
and have Sam Newman on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Programmer Certification (SCJP/OCPJP)
K&B Book Chapter 7,Page 616,Question 9
Joined: Jan 03, 2008
Feb 10, 2008 16:04:00
Question says:Given a properly prepared
array containing five elements,which range of results could a proper invocation of Arrays.binarySearch() produce?
A. 0 through 4
B. 0 through 5
C. -1 through 4
D. -1 through 5
E. -5 through 4
F. -5 through 5
G. -6 through 4
H. -6 through 5
Output is G ie -6 through 4.My doubt is why the range starts from -6.
Thanks in advance.
Joined: Aug 31, 2004
Feb 10, 2008 19:01:00
This question is explained
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award."
I agree. Here's the link:
subject: K&B Book Chapter 7,Page 616,Question 9
K&B page 628 question 9
Chap 7 pg 628 from kathy & Sierra
k&b scjp5, page no 616, problem no 9
Kathy Sierra doubt
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015