hi guys
from K and B book:
The command-line switches for assertions can be used in various ways:
■ With no arguments (as in the preceding examples) Enables or disables
assertions in all classes, except for the system classes.
>> what does it mean by except for system classes? can we have an example for that?
■
With a package name Enables or disables assertions in the package specified,
and any packages below this package in the same directory hierarchy
(more on that in a moment).
does it mean if we first make
java -ea:com.geeksanaymous... later we can use only java without -ea to run any java class inside the geeks anaymous directory and its subdirectories? like java Test1 >>> for Test1.java in geeksanaymous directory
i tried to use java -ea:a packageName but if fials
■ With a class name Enables or disables assertions in the class specified.
what is the difference between
java -ea Test1 and
java -ea:Test1 in terms of funcitonallity