The Answer is Yes.
In Order to understand this Question, you must know the rules for method overriding in Java
- You are free to throw any kind of Runtime Exception in the overriding class (not applicable for checked exception)
- You shall only throw same or narrowed checked exception (same or sub-class)
- The argument list must exactly match that of the overridden method. If they don’t then it will result in overloading rather than overriding.
- The return type must be a covariant type (same class or sub-class), i.e. you can narrow down the return type.