I have one question that collection interface contains some methods then where there behavior are written as a interfacae contains only methods declaration
Asked
Active
Viewed 21 times
0
-
3Sorry, that is not a question that I can understand. Please elaborate. – Elliott Frisch Jul 28 '18 at 20:54
-
Interface have corresponding classes that implements them. Like for example, `List` interface have 'ArrayList` as one of the classes who implements it. – Ashishkumar Singh Jul 28 '18 at 20:55
-
2You need to understand what an interface is, once you get what it means and it's purpose then you'll know where the behaviour is written. by the way as of jdk8 interfaces can have implementations as well. – Ousmane D. Jul 28 '18 at 20:57