Free Jobs

Java Forums: Core Java (15) J2EE (3) EJB (5) Servlet (3) JDBC (6) Hibernate (2) Struts (1) Swing (1) Oracle (7) JSP (4) Other (10)

Topic: What is the Difference Between Abstract Class and Interfaces

To get the Posted Questions details daily in your mail Click Here

Share this Post on Facebook/Twitter/Orkut Bookmark and Share

User: manishav3388 Post Date: 08 Aug 2010 03:46

Difference Between Abstract Class and Interfaces.

Main Content:
1.In Abstract class some methods can be Implemented But Interfaces cannot implement any methods.
2.A class extending an abstract class may or may not implement all of the methods defined in the abstract class but a Class Implementing an interface must implement all of the methods of the interface.

3.Abstract class does not have Multiple Inheritance . Interfaces can be used to supports Multiple Inheriatance.

4.Abstract class can have private and protected members but in Interface all member functions are public by default.

Similarity Between Abstract Class and Interfaces:

Both Abstract classes and Interfaces can't be instantiated.

So there are a lot of differences between Interfaces and Abstract classes.
But there is some similarities also.

About Writer:
hello,I am JAVA Developer from Noida.

Writer's Link: http://

Writer's Email:

  • User: mohit555 Post Date:   06 Sep 2010 00:04
    Great Post!
    Keep It Up!

  • User: gokul4121989 Post Date:   31 Jan 2011 22:24

Post Comment

Similar Articles Top ArticlesLatest Articles Other Articles by this Author Copyright © 2009-2011 | All Rights Reserved
All content of this website is protected by copyright laws and should not be reproduced in any form or by any means without written permission
(Best viewed in IE 8.0+ or Firefox 3.0+ at resolution of 1024 * 768 or higher)