Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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.


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!