Can we override the static method? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
+ 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