Kursy
Zaloguj sięZacznij uczyć się AI
Kursy
Zaloguj sięZacznij uczyć się AI
+ 1

Why can't we have static method in a (non-static) inner class?

Instance variable and methods can't be static Could you answer me ?

javastaticinner-classesclass
9th May 2022, 9:18 PM
Mohamed
Mohamed - avatar
2 odpowiedzi
+ 3
Hope this helps: https://stackoverflow.com/questions/975134/why-cant-we-have-static-method-in-a-non-static-inner-class-pre-java-16
9th May 2022, 9:45 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
Denise Roßberg Thanks dude 🙂
10th May 2022, 2:50 PM
Mohamed
Mohamed - avatar

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
Audio adding
1 Votes
What is problem in this code
0 Votes
Stuck in Quize
1 Votes
playground input
0 Votes
C Program
0 Votes
This Program Does Something Weird. Can You Explain Why?
1 Votes
Software developer
0 Votes
Asking for final year project ideas!
1 Votes
How does JavaScript's event loop handle asynchronous operations like setTimeout, Promises, and async/await, and what are the dif
1 Votes
есть кто на русском разговаривает?
0 Votes