aspose file tools*
The moose likes Beginning Java and the fly likes Need  of  interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Need  of  interface" Watch "Need  of  interface" New topic

Need of interface

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hi All,

About interface,

interface method do not have body .so, it supports multiple inheritence.

well,but my doubt is without body definition,what is the use of implementing the interface.. :roll:

what i feel , Abstract class is meaningful compare to interface
Joe Ess

Joined: Oct 29, 2001
Posts: 8705

Abstract Classes vs. Interfaces
It may also be instructive to look at real-life implementations, for example, the Java Collections Framework, which makes good use of both interfaces and abstract classes.
[ September 09, 2008: Message edited by: Joe Ess ]

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Thanks Joe
I agree. Here's the link:
subject: Need of interface
Similar Threads
what is the implementation class of Connection Interface
default value of body-content
iterface method
clear my doubt
Implementing an interface - Is it IS-A ?