Abstract class VS Interface in java

1 – each method in interface is implicitly abstract , so the abstract modifier is not used with interface methods.

2 – Abstract class is contains abstract methods and fields that are not static and final.

3 – If an abstract class contains only abstract method declarations, it should be declared as an interface instead.

4 – Abstract classes cannot be instantiated, but they can be subclassed.

This entry was posted in Core Java. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s