Why can you have a HashSet of objects of that class

Viewed 511

I'm battling to understand why this is possible. I'm a java newbie and don't understand how you can have a collection of any type (lists or sets) be of type Example. I'm battling to understand both the recursive nature of this as well as why this is used.

class Example {
    private Set<Example> setExample;
    //....
}
3 Answers
Related