Sorry I didn't provide sufficient information. When given without the 3 dots(
java -ea:foo.sampleprogs), the ea flag is ignored silently and hence the assertions are disabled(as they are disabled by default). Nothing special happens and the execution proceeds normally.