posted 22 years ago
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
The ans is d, But I think the ans should be A. Can anyone tell me the true?