Actually in (K&B) page:390 ,it is written that "when used with no arguments it enables or disables in all classes , except for system classes"
but the table at page:391
java -ea -dsa is "Enable assertions in general but disables assertions in system classes"
I am confused with these two and if first statement is correct then second is redundant i believe...
docs of java application launcher says "If the argument is simply "...", the switch enables assertions in the unnamed package in the current working directory."
what is unnamed package here??
Is it the default package which include all the classes which are not in any package??
Hareendra if you read the doc that you linked to, it says
in their no-argument form, the switches do not apply to system. This makes it easy to turn on asserts in all classes except for system classes. A separate switch is provided to enable asserts in all system classes; see -enablesystemassertions below.
As far as unnamed package is concerned, yes it means classes which are in the default package i.e. don't have any package...