static structure | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

static structure

Is there a difference in the static structure in interface and class?

9th Feb 2019, 8:30 PM
Hosseinam
Hosseinam - avatar
2 Answers
+ 6
Tejas Gupta thanx I know the difference between class and interface but my question is that is there a difference between the static method in interface and class in the meta-space?
11th Feb 2019, 3:02 PM
Hosseinam
Hosseinam - avatar
+ 5
Shruthi thanx but we can define a static method in the interface since Java 8 (eke default method)
11th Feb 2019, 3:07 PM
Hosseinam
Hosseinam - avatar