File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes abtract class and interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "abtract class and interface" Watch "abtract class and interface" New topic

abtract class and interface

Eshwin Sukhdeve
Ranch Hand

Joined: Mar 15, 2012
Posts: 90
suppose I have one abstract contains all methods as abstract.and I have one defualt interface having all
methods this case both having same behaviour.then why we chosse either interface or abstract class.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63874

Please SearchFirst. This exact question has been posed many times.

[Asking smart questions] [About Bear] [Books by Bear]
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10840

And we even have a FAQ for it
This would be more suitable on the beginners forum. Moving

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Eshwin Sukhdeve
Ranch Hand

Joined: Mar 15, 2012
Posts: 90
thanks for help
I agree. Here's the link:
subject: abtract class and interface
It's not a secret anymore!