Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Arijit Daripa
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).
 
Ashish Hareet
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic