Can anyone explain to me in simple English language why we can't use assertion for:
1) Argument checking in public methods.
public class Test{
public void abc(int a){
assert a>3
}
}
2) Command line arguments.
public class Test{
public static void main(String[] args)
assert args.length==3
}
}
Your help is kindly appreciated.
Thank You.