I was looking at some code and came across something similar to below:
import javax.validation.groups.Default;
public class TestClass {
public interface Interface1 extends Default{}
}
I am not able to understand this? What does this line mean:
public interface Interface1 extends Default{}
Before this I have never encountered code like this. Could anyone help me understand this.
EDIT:
I am not asking why to include interface within class, my doubt is on this statement:
public interface Interface1 extends Default{}
Please don't rush to make this as duplicate of altogether a different question.