Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Assertion & default package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Assertion & default package" Watch "Assertion & default package" New topic
Author

Assertion & default package

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

I tried to enable assertion for a class file in the default package but it did not work.



Can't we eanble assertion for default package alone ?
Mike Gershman
Ranch Hand

Joined: Mar 13, 2004
Posts: 1272
Try this
java -ea:... AssertionTest


Mike Gershman
SCJP 1.4, SCWCD in process
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

Thanks Mike.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Assertion & default package
 
Similar Threads
question
Assertion doubt
Doubt with assertions - Kathy Sierra chapter 10
Appropriate Assertion
Assertions