Hi,
What is the syntax for enabling the assertions for packages.
In K&B it has given that the syntax for enabling assertions is,
(Page No, 262 - If the package name is com.geeksanonymus)
java -ea:com.geeksanonymus <classname>
With the above syntax you can enable the assertions for all the classes in the package com.geeksanonymus and its sub packages too.
But in some material i saw the syntax is,
java -ea ... com.geeksanonymus <classname>
I am having one more doubt,
In some material i saw that, Assetion can be used for
"When you have written a comment that asserts as invariant"
What is the meaning of the above sentence....
Thanks in Advance...