title: What is the difference between Collection and Set interfaces in Java?
body: <p>The declared method signatures seem to be equal. So what is the purpose of introducing Set interface rather then implementing Collection directly? Or is it just sort of a marker interface here?</p>