This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
As method doIt() doesn't throw IOException compiler gives error if I dont comment it My question is why does it allow to catch only "Exception"?? Is it because Exception class is also a parent of RuntimeException compiler allow us to add try-catch assuming that method can throw runtime exceptions?? Thanks in advance Megan [ August 08, 2002: Message edited by: Megan Adal ] [ August 08, 2002: Message edited by: Megan Adal ]