| |
GeekInterview.com > Interview Questions > J2EE > Core Java
| Print | |
Question: Overriding Methods
Answer: Suppose a Super Class method throws an exception and this method is Overriden in the subclass with no exception. Now if you create a super class reference that has a subclass object. This throws a compile time error, Why? |
| August 08, 2008 07:45:51 |
#5 |
| Karuna Reddy |
Member Since: June 2007 Total Comments: 38 |
RE: Overriding Methods |
| sub class exceptions will fire first than super class exceptions |
| |
Back To Question | |