This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
what is the result? A. 12 15 B. 15 15 C. 3 4 5 3 7 5 D. 3 7 5 3 7 5 E. Compilation fails F. An exception is thrown at runtime
Kathy says its B, since a1 and a3 refer to the same long array object.
I had this slight doubt that this answer would be right if the first print statement does not contain an " ". Since it contains " ", shouldnt't the String Concatenation rule be applied, and it should simply print 375 15 ?
Originally posted by New Dude: ...am i missing somethin in here?
Yes, you're missing Bert Bates.
I think you also missed our JavaRanch Naming Policy. To maintain the friendly atmosphere here at the ranch, we like folks to use real (or at least real-looking) names. Please revise your display name here.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org