This week's book giveaway is in the Java in General forum. We're giving away four copies of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 and have ishori Sharan & Adam L Davis on-line! See this thread for details.
1 Since the method foo()does not the catch the exception thrown by the method baz(), it must declare runtime exception in its throw clause 2 A try block cannnot be followed both by catch and finally block 3 An empty catch block is not allowed 4 A catch block cannot follow finally block 5 A finally block should always follow one or more catch block I feel all the option is wrong.Answer a is wrong because finally block cannot come before catch block. Any other suggestion Thanks in advance
What if u remove catch after finally & baz() within finally.And put bar() in finally. Bye. Viki.
• Sun Certified Programmer for Java 2 Platform (SCJP2)
• IBM Certified Professional for Object Oriented Analysis and Design with UML
• IBM Certified System Administrator for WebSphere Application Server v5.0
• Certified Business Analysis Professional (CBAP®)