This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Interface Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Interface Question" Watch "Interface Question" New topic

Interface Question

Michael Eller
Ranch Hand

Joined: Feb 28, 2004
Posts: 32

I have studying the use of interfaces. I believe I am getting a good grasp of the subject.
I do have one question.
Is it safe to say that an interface provides the methods that an object that implements that interface uses as a means of communication with other objects? ... hence the name interface.

Thanks for any and all assistance.

Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
Correct. There may or may not be logical/direct relationship between those objects. That's what a loose coupling means.
But be clear with the use of Interface and Abstract Class.
It is sorta covered in the JavaRanch Style Guide.
subject: Interface Question
Similar Threads
What is Marker interfaces?
Interface Serialization and Object extensions
Interface doubt from K&B
Drag and Drop Questions
Deployment Diagram