• Post Reply Bookmark Topic Watch Topic
  • New Topic

report error: OCA/OCP Java SE 8 Programmer Practice Tests  RSS feed

 
Stefan Banu
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chapter 10 question 1

the answer should be: nothing is printed instead of The code compiles but throws an exception at runtime.



thanks,
Stefan
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37256
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stefan,
The answer is correct as is. Take a look at the question and see what arguments it says are passed. This makes books an array of length 2.
 
Stefan Banu
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, sorry about that

how can i delete the post?

thanks,
Stefan
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37256
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stefan Banu wrote:how can i delete the post?

It's good to leave it. Someone else will have the same question at some point and then the answer will be on the internet already!
 
Stefan Banu
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, thank you for all your awesome support.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!