• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error again ( 3rd time, same site). Mr. Hareet! Come on!  RSS feed

 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mr. Hareet!
One of the questions in
http://www.irixtech.com/java/scjp/mock-exam/practice-test-2 is


Your answer is Code C and Code D.
But Code C will not compile (Compiler will say- ; expected).
 
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
assert( i > 0 ) needed a semi colon, try
assert( i > 0 );

Thanks for all your feedback.
 
Just the other day, I was thinking ... about this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!