File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

abstract class

 
Arulmariappan Ramasamy
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
explain about abstract class and interface
 
sourabh girdhar
Ranch Hand
Posts: 71
Java Spring Ubuntu
  • 0
  • 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.
 
Javin Paul
Ranch Hand
Posts: 295
Eclipse IDE Firefox Browser Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Check it here , you may find it useful Abstraction in Java
 
Christian Joseph
Ranch Hand
Posts: 43
  • 0
  • 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
 
Sanjeev Ba
Ranch Hand
Posts: 40
Android Chrome Linux
  • 0
  • 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.

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic