This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes ea and da--assertions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "ea and da--assertions" Watch "ea and da--assertions" New topic

ea and da--assertions

srini kami

Joined: Dec 29, 2002
Posts: 26
I am reading assertions for 1.4 certification. I am bit confused about those 2 switches(ea and da) especially when they apprear in same coomand line, like enabling for a package and disabling for subpackage or specific class.
If someone can explain it or give me some links i will appreciate it.

Thank you<br />Srini
Jose Botella
Ranch Hand

Joined: Jul 03, 2001
Posts: 2120
Welcome to the Ranch srini.
There is a free Java book downloadable from that deals with assertions and much more.

SCJP2. Please Indent your code using UBB Code
Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

Check out Cindy's newsletter article about Assertions.
It gives examples of using the -ea and -da, -esa and -dsa parameters. (EnableAssertions, DisableAssertions, EnableSystemAssertions, DisableSystemAssertions).
I agree. Here's the link:
subject: ea and da--assertions
It's not a secret anymore!