I am curious to know if we can make an interface static in java. I tried but getting the below error. I also want to know why it is happening.
error: modifier static not allowed here
static interface Interf{
^
1 error
Thanks in advance.
I am curious to know if we can make an interface static in java. I tried but getting the below error. I also want to know why it is happening.
error: modifier static not allowed here
static interface Interf{
^
1 error
Thanks in advance.