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
答案解析:有
微信扫一扫手机做题