Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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
Boost this thread!