• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

abstract class

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
explain about abstract class and interface
 
Ranch Hand
Posts: 81
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is most common interview question. Not something you will like to post as new thread.

Search through Java ranch forum or simple Google and you will get the detailed explanation about difference between interface and abstract class.
 
Ranch Hand
Posts: 300
Eclipse IDE Firefox Browser Linux
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for meaning just use Google or Yahoo..

but for the difference(i know theres many difference but imo the important ones are)

Interface has a default public abstract (methods).. and default public static final instance variable.. (when i say default it only means it automatically has that)

while Abstract can be Abstract or concrete members(methods) ..

thats all i know
 
Ranch Hand
Posts: 41
Android Chrome Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the question scope is very broad. Better to refer to books.

A few things come to mind.

1. Interface can "extend" only interfaces.

2. Abstract classes can extend only one other abstract class and can implement multiple interfaces.

3. Abstract classes can provide implementations of some or all methods.

4. All interface methods are implicitly public and abstract.

And many more.

 
Oh the stink of it! Smell my tiny ad!
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic