Can we override the static method? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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 Respuesta
+ 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