Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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!