0 votes
in JAVA by

Can we override static methods?

1 Answer

0 votes
by

Can we override static methods?

Static methods cannot be overridden because they are not dispatched to the object instance at run time. In their case, the compiler decides which method gets called.

Related questions

+1 vote
asked Dec 7, 2020 in JAVA by SakshiSharma
+1 vote
asked Apr 13, 2023 in JAVA by Robin
...