class A {
private void m1 (int i) {
assert i < 10 : i;
System.out.print(i);
}
public void m2 (int i) {
assert i < 10 : i;
System.out.print(i);
}
public static void main (
String[] args) {
A a = new A();
a.m1(11);
a.m2(12);
}
}
two of the answers are:
a. If assertions are not enabled at run time it prints an error message.
b.With assertions disabled it prints "1112"
what is the difference between. assertion not enabled and assertion disabled??
please explain. Thanks