Friday, 18 March 2016
If a method throws NullPointerException in super class, can we override it with a method which throws RuntimeException ?
Yes !
You can very well throw super class of RuntimeException in overridden method.
But you cannot do same if its
checked Exception
.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.