SCJP Certification

Sun Certified Java Programmer Certification exam essentials

January 20th, 2010

How to enable or disable an assertion?

Uncategorized, by Daisy Williams.

An assertion can be enabled or disabled for a class or a package during runtime as follows:

-da ClassName or -da PackageName: This will disable the assertion for a class or a package respectively.

-ea ClassName or -ea PackageName: This will enable the assertion for a class or a package respectively.

Share

Back Top

Responses to “How to enable or disable an assertion?”

Comments (0) Trackbacks (0) Leave a comment Trackback url
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Your email address will not be published. Required fields are marked *

*