public class Test {  public static void main(String[] args) {  int x = 0;  assert (x > 0): “assertion failed”;  System.out.println(“finished”);  }  }  What is the result?()  

A .  finished B .  Compilation fails. C .  An AssertionError is thrown. D .  An AssertionError is thrown and finished is output.

时间:2022-10-30 07:34:42 所属题库:SCJP程序员认证考试题库

相似题目