Assertions in general

Assertions in general: Reminders regarding use : Examples of typical styles, which affect non-system classes:
Runtime command line Classes with assertions enabled
java -ea  Main all classes
java -ea:com.Blah   Main one particular class named Blah
java Main all classes in the package, and all of its sub packages
java -ea -da:com.Blah Main all but one class named Blah

See Also :
Conditional compile
Pass all pertinent data to exceptions