Possible Duplicate:
What is an interface in Java?
Im confused by this term. I search google and this is what I found.
An interface is the place where two different things meet and interact. This term often comes up with regard to computers. Data processing takes place inside the computer, and thoughts take place inside the user of the computer, and they meet at an interface, which is a keyborad and a monitor screen (and usually speakers as well). [DATA -> INTERFACE <- USER]
But in this site I found this.
Java contains many libraries in those packages (Swing, etc.), and the API is the interface by which we request services (perform actions, etc.).[PACKAGES->API<-PROGRAMMER]
But in java we use it like this...
public interface A
public class B implements A
We use it to implement methods from A. Interface here is not a connection between B and methods().