+ 2

We can make a method final static both?

related to the java

1st Jan 2018, 6:09 AM
tarun
tarun - avatar
7 Respostas
+ 10
@David Fuqua thanks
1st Jan 2018, 7:39 PM
David Akhihiero
David Akhihiero - avatar
+ 9
yes In java ,we can make a method final and static both
1st Jan 2018, 7:10 AM
KHAN VASIM
KHAN VASIM - avatar
+ 9
@Jamie, what do you mean by hidden?
1st Jan 2018, 9:26 AM
David Akhihiero
David Akhihiero - avatar
+ 7
@Yerucham, here's a link about method hiding. Static methods aren't polymorphic (at runtime), so hiding works differently than overriding. https://docs.oracle.com/javase/tutorial/java/IandI/override.html
1st Jan 2018, 9:39 AM
David Fuqua
David Fuqua - avatar
+ 2
we can make final and static methods in java
1st Jan 2018, 6:26 AM
Rishabh
Rishabh - avatar
0
Im, jordn,
18th Jan 2018, 12:56 PM
doha
- 3
No, we can't be make a method final and static both.
1st Jan 2018, 6:11 AM
tarun
tarun - avatar