+1 vote
in JAVA by (30.6k points)
Can the static methods be overridden?

1 Answer

0 votes
by (30.6k points)

No! Declaration of static methods having the same signature can be done in the subclass but run time polymorphism can not take place in such cases.

Overriding or dynamic polymorphism occurs during the runtime, but the static methods are loaded and looked up at the compile time statically. Hence, these methods cant be overridden.

Click here to read more about JAVA
Click here to read more about Insurance

Related questions

+2 votes
asked Feb 8, 2020 in JAVA by rahuljain1 (6.0k points)
+2 votes
asked May 31, 2020 in JAVA by SakshiSharma (30.6k points)