• Post Reply Bookmark Topic Watch Topic
  • New Topic

Another wierd OCAJ exam question: explanations invited  RSS feed

 
Andy Ball
Greenhorn
Posts: 20
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, finished yet another Mock exam on Enthuware & am a bit confused by the below..

a) because I got it wrong & b) because Enthuware's explanation involved 'args[2]' which is never mentioned in the given code.

Can someone confirm that the mock is wrong & that I'm not going nuts,... Or point out what I'm obviously not seeing..

http://postimg.org/image/ajhvp8a3n
 
Andy Ball
Greenhorn
Posts: 20
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
... DAMMIT!
& yet again, I spot it straight after posting this. i = 2


Mods, - please delete thread as un-required.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!