10. What will happen when you compile and run the following code with assertion enabled?
public class Test{
public static void main(String[] args){
int[] marks = {40, 38, 52};
boolean[] pass = {false, false, false};
for(int i = 0 ; i < marks.length; i++){
try{
assert marks[i] >= 40 : pass[i] = true;
}catch(AssertionError ae){
pass[i] = false;
}
}
for(boolean b : pass)
System.out.print(b + ",");
}
}