Can we override the static method? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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 ответ
+ 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