Hi all I've come across this question in a mock exam and I can't understand the answer, could somebody help please?
public class Assertification {
public static void main(
String args[]){
assert args.length == 0;
}
}
Which of the following conditions must be true to throw an AssertionError?
a) The args array must have exactly zero elements.
b) The args array must have one or more elements.
The answer is (a), but doesn't that make the condition true. Shouldn't the condition be false to throw an AssertionError?