Question 64
Given: 
8. public class test { 
9. public static void main(String [] a) { 
10. assert a.length == 1; 
11. } 
12. } 
Which two will produce an AssertionError? (Choose two.) 
A. java test 
B. java -ea test 
C. java test file1
D. java -ea test file1 
E. java -ea test file1 file2 
F. java -ea:test test file1
Answer: BE
问题一(1):
一道Java,完全不明白它在考什么???是Java命令行吗?什么意思啊?
请问这道题该怎么做啊???
谢谢关于assert的  个问题。谢谢,,,
Question 65
Given: 
12. public class AssertStuff { 
13. 
14. public static void main(String [] args) { 
15. int x= 5; 
16. inty= 7; 
17. 
18. assert (x> y): “stuff”; //问题二(1):这是什么语句啊?有什么作用?
19. System.out.println(“passed”);
20. } 
21. } 
And these command line invocations: 
java AssertStuff 
java -ea AssertStuff //问题二(2):这又是什么语句啊?有什么作用?
What is the result? 
A. passed 
stuff 
B. stuff 
passed 
C. passed 
An AssertionError is thrown with the word “stuff” added to the stactrace. 
D. passed 
An AssertionError is thrown without the word “stuff” added to th
stack trace. 
E. passed 
An AssertionException is thrown with the word “stuff” added to th
stack trace. 
F. passed 
An AssertionException is thrown without the word “stuff”added to th
stack trace. 
Answer: C