File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Assertions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Assertions" Watch "Assertions" New topic


Mamadou Touré
Ranch Hand

Joined: Dec 27, 2007
Posts: 189
hi ranchers,

I have problem understanding the philosophy of assertion. What's the purpose of assertions ???

SCJP 5 (76%)
SCWCD 5 (86%)
SCBCD 5(70%)
"The greatest glory in living lies not in never falling, but in raising every time we fall.".. Nelson Mandela
marc weber

Joined: Aug 31, 2004
Posts: 11343

See Programming with Assertions.

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
Irina Goble
Ranch Hand

Joined: May 09, 2004
Posts: 91
Writing programms is very error-prone. Assertions will save you lots of time and nerves. They are kind of a step forward to Design by Contract.
I agree. Here's the link:
subject: Assertions
jQuery in Action, 3rd edition