Can we override the static method? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Can we override the static method?

As we can overload the static method then why can't we override the static method in java!

22nd Jan 2019, 10:05 AM
rahul sakhare
rahul sakhare - avatar
1 Antwort
+ 3
Its because the static method belongs to the class rather then the instance of that class
22nd Jan 2019, 11:30 AM
D_Stark
D_Stark - avatar