Rule for Overriding is if in superclass method thows a checked exception then the overrideen method must throws that exception or subtype of that exception or it may not throws any exception;
But in case of if subclass overriden method cant thows checked exception if its superclass method doesnot throws Exception
but there is no condition for unchecked exception
NullPointerException is unchecked RuntimeException
Exception is Checked