Let say there is a method that throws NullPointerException in the superclass. Can we override it with a method that throws RuntimeException?
All Questions › Category: Java › Let say there is a method that throws NullPointerException in the superclass. Can we override it with a method that throws RuntimeException?