This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Need  of  interface" Watch "Need  of  interface" New topic
Author

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
Bartender

Joined: Oct 29, 2001
Posts: 9025
    
    9

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 ]

[How To Ask Questions On JavaRanch]
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Thanks Joe
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Need of interface