Win a copy of Head First Android this week in the Android 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Correct And Legal (About AssertionError)

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
reply
    Bookmark Topic Watch Topic
  • New Topic