• Post Reply Bookmark Topic Watch Topic
  • New Topic

Correct And Legal (About AssertionError)  RSS feed

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi . i am making preparetion for OCPJP6 exam.
l have seen below sentence in Kathy Sierra book . which is about "AssertionError" ...
l couldnt figure out about meaning of "correct" and "legal" ...
Can anyone explane this two words.
Thanks...





Kathy Sierra book (About AssetionError)

If you see the word "appropriate" on the exam, do not mistake that for "legal."
          "Appropriate"always refers to the way in which something is supposed to be
     used, according to either the developers of the mechanism or best practices officially
  embraced(benimsemek) by Sun. If you see the word “correct” in the context of assertions,
  as in, “Line 3 is a correct use of assertions,” you should also assume that correct is referring to how
  assertions SHOULD be used rather than how they legally COULD be used.


 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!