Need to clear some doubts in Java
January 3, 2007 3:47am CST
Hai Everyone , any one who have doubts in Java can post your doubts ,there by we can share our knowledge and earn some money. My question is ... In java exceptions ,Usually we catch the exceptions in catch block by Catch(Exception ex). When we do this we will catch all type of exceptions which belongs to the subclass of java Exception class.But usually when we have a parent class and sub class relation ,the child class can inherit all the methods from super class ,but the super class dont have any access to the subclass.If it is so then how the Exception class ,catches its subclass exception correctly....if any know please post response we will discuss abt that ....