M Srilatha wrote:Hi Amit,
java -ea will enable assertions in all classes except system classes.
java -da will disable assertions in all classes except system classes.
java -ea -dsa will enable assertions in all classes and disable for system classes.
-esa can be used to enable assertions for system classes where as -dsa for disabling the assertions for system classes.
Hope this is clear!
In other words, there is no difference between
java -ea
and
java -ea -dsa
Let me know if you think I'm wrong.