Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ea and da--assertions

 
srini kami
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
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.
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch srini.
There is a free Java book downloadable from javalobby.com that deals with assertions and much more.
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic