这个程序很有意思,程序中大量使用了中文变量名。
主类 EnglishTest.java
考试区域 TestArea.java
读取试题 ReadTestquestion.java
试题文件:123.txt
考考你(7)
What is the result of executing the following fragment of code:
boolean flag = false;
if (flag = true) {
System.out.println("true");
} else {
System.out.println("false");
}
A. true is printed to standard out
B. false is printed to standard out
C. An exception is raised
D. Nothing happens
Select the most appropriate answer.
点击查看答案
如下运行图:
↑返回目录
前一篇: java中静态方法和非静态方法覆盖的区别
后一篇: java继承入门