This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
What is the result? A. finished B. Compilation fails. C. An AssertionError is thrown. D. An AssertionError is thrown and finished is output. Answer: A Assert statement is ignored because it is disabled during normal program run by default. The choice is the result of this reason, right? If so, when we meet the Questions with assert statement like this, how can we handle them? Think them in default (disable) or not?
If so, when we meet the Questions with assert statement like this, how can we handle them? Think them in default (disable) or not? If you get a question with only this information, then answer is A because assertions are disabled by default. You will be explicitly notified when assertions are enable. Or you can also get: "assuming the code is compiling using java -source 1.4, and java -ea blah blah". [ September 02, 2003: Message edited by: Andres Gonzalez ]
I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury