试题详情
单项选择题 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.

  • C
  • 关注下方微信公众号,在线模考后查看

热门试题