This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Assuming that the setX method is never invoked, which statements are true? a. With assertions enabled it prints 012345 followed by an AssertionError message. b. With assertions enabled it prints 012. c. With assertions disabled it prints: 012345 d. With assertions disabled it prints: 012 e. With assertions disabled it attempts to print an infinite sequence of numbers. f. With assertions disabled the variable i1 is incremented with each pass through the loop. g. As a rule, the boolean expression of an assert statement should not be used to perform actions that are required for normal operation of the program. B,e,g are correct. But my ananlysis says b and d are correct.
Can anyone please explain e an g options for me.(step by step if possible)