6. Can override the static method?.

we can’t override static methods because :

Static method is bond at the compiler time and it’s loaded into main memory by class loader before application execute.
But the overriding method is based on dynamic binding at runtime. This means Overriding requires an executable program to execute

– –> So we can’t override static method.

Leave a Reply

Your email address will not be published. Required fields are marked *