Cursussen
InloggenBegin met het leren van AI
Cursussen
InloggenBegin met het leren van 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 Antwoorden
+ 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

Heb je vaak vragen zoals deze?

Leer efficiënter, gratis:

  • Inleiding tot Python

    7,1 miljoen leerlingen

  • Inleiding tot Java

    4,7 miljoen leerlingen

  • Inleiding tot C

    1,5 miljoen leerlingen

  • Inleiding tot HTML

    7,5 miljoen leerlingen

Bekijk alle cursussen
Populair vandaag
What kind of questions do companies ask in Data Analyst interviews (including Python, SQL, Power BI, and Excel)?
1 Votes
??
1 Votes
How many program that you've made even a smaal project are good?
0 Votes
Hello guys,
1 Votes
Help me
1 Votes
Programming
0 Votes
Give some simple practice questions in C
0 Votes
how do they use javascript
0 Votes
Code coach isn't awarding xp
0 Votes
Temperature converter( celsius to fahrenheit)
0 Votes