Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Notes on Assertions

 
Khalid A. Mughal
author
Ranch Hand
Posts: 112
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
http://www.ii.uib.no/~khalid/pgjc/jcbook/new-exam-note-020928.html

Enjoy!
[ October 30, 2002: Message edited by: Khalid A. Mughal ]
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Khalid-
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
Posts: 2595
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jessica, the site says the book will be published in the first quarter of 2003.
The notes look excellent Khalid!
- Manish
 
raze Codeson
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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???
Thanks,
/Thomas
 
Rachel White
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great notes.
Khalid Sir: When are you launching the new version?
Regards and best wishes
Rachel
 
Alfred Kemety
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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??
 
James Chegwidden
Author
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Go to the Addison-Wesley web site: www.awl.com
It says when it will published next year.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic