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 Notes on 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 "Notes on Assertions" Watch "Notes on Assertions" New topic

Notes on Assertions

Khalid A. Mughal
Ranch Hand

Joined: Jul 30, 2002
Posts: 103
We have posted a 14-page excerpt on assertions (with review questions) from the forthcoming second edition of our book:
A Programmer's Guide to Java Certification: A Comprehensive Primer
by Khalid A. Mughal and Rolf W. Rasmussen

The notes can be downloaded from here:

[ October 30, 2002: Message edited by: Khalid A. Mughal ]
Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

The assertions chapter looks like an excellent resource (as was/is the rest of your 1.2 book). When will the 1.4 book be published?
Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2591

Jessica, the site says the book will be published in the first quarter of 2003.
The notes look excellent Khalid!
- Manish
raze Codeson

Joined: Oct 31, 2002
Posts: 1
Ehh, I will take the 1.4 exam after noon today, and read your chapter about assertions, and I�m impressed!
But I�m little bit confused about the question marked 5.26.
The answer is "AssertionException".
I have not seen anywhere this Exception (if you don�t write it your self), only AssertionError i throws, or???
Rachel White
Ranch Hand

Joined: Sep 04, 2001
Posts: 37
Great notes.
Khalid Sir: When are you launching the new version?
Regards and best wishes
Alfred Kemety
Ranch Hand

Joined: Aug 14, 2002
Posts: 279
Question 5.26 answer is:

The class of exceptions thrown by assertion statement is always AssertionException.

I searched the API for AssertionException class but only found AssertionError
is it a typo??

Alfred Raouf - Egypt - SCJP 1.4<br />Kemety.equals(Egyptian) // returns true
James Chegwidden
Ranch Hand

Joined: Oct 06, 2002
Posts: 201
Go to the Addison-Wesley web site:
It says when it will published next year.

Author and Instructor, my book
I agree. Here's the link:
subject: Notes on Assertions
It's not a secret anymore!