in JAVA by (6.5k points)

Can we override static methods?

1 Answer

0 votes
by (32.2k points)

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 (32.2k points)
...