public class Test {  public static void main(String [] args) {  boolean assert = true;  if(assert) {  System.out.println(”assert is true”);  }  }  } Given:  javac -source 1.3 Test.java  What is the result?() 

A .  Compilation fails. B .  Compilation succeeds with errors. C .  Compilation succeeds with warnings. D .  Compilation succeeds without warnings or errors.

时间:2022-10-13 19:38:03 所属题库:SCJP程序员认证考试题库

相似题目