This week's book giveaway is in the Cloud/Virtualization forum. We're giving away four copies of Cloud Application Architecture Patterns: Designing, Building, and Modernizing for the Cloud and have Kyle Brown, Bobby Woolf and Joseph Yodor on-line! See this thread for details.
. public class Test { 12. public void foo() { 13. assert false; 14. assert false; 15. } 16. public void bar(){ 17. while(true){ 18. assert false; 19. } 20. assert false; 21. } 22. } What causes compilation to fail? A. Line 13 B. Line 14 C. Line 18 D. Line 20
because the compiler knows that inside the while(true) 'assert false' gives an exception and so the second assert will be not reachable. evrything you write after the while cause compilation to fail. try to compile it.