*Friends, I had a doubt regarding Exception class hierarchy. If anyone
thinks of  a solution kindly reply back.*
*We know subclasses always have an extended functionality of superclass-
i.e. all functions of superclass are necessary to be there in subclass too
then the problem is*

Suppose my code is somewhat like:

try
{
//code here
}

catch( IOException e )
{}

This works fine, now we have IOException subclass of superclass
Exceptionthen how come on replacing IOException by Exception also, the
code has no
more problem.I know that Exception is a generalised class but IOException
being a subclass must not only have functionality of Exception class but
also added specific functionality.

-- 
Rohit.

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to javaprogrammingwithpassion@googlegroups.com
To unsubscribe from this group, send email to 
javaprogrammingwithpassion-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to