Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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
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: 63343

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

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

Joined: Jul 26, 2007
Posts: 10747

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!