Let say there is a method that throws NullPointerException in the superclass. Can we override it with a method that throws RuntimeException?

All QuestionsCategory: JavaLet say there is a method that throws NullPointerException in the superclass. Can we override it with a method that throws RuntimeException?
Vaishnavi Talawar asked 3 years ago