While working with the idea of overriding and overridden methods in Java I have noticed that there is some flexiblity given for the return types of such methods.
Her
For first example:
Method in A: public Object some_method() {....} Method in B: public Integer some_method() {....}
this type of overriding possible, but rest for two example overriding not possible.