單項(xiàng)選擇題

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.

微信掃碼免費(fèi)搜題