Why can't we have static method in a (non-static) inner class? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 ?

9th May 2022, 9:18 PM
Mohamed
Mohamed - avatar
2 Answers
+ 1
Denise Roßberg Thanks dude 🙂
10th May 2022, 2:50 PM
Mohamed
Mohamed - avatar