React.js
Angular
Ethical Hacking
Agile
AWS
BlockChain
Cassandra
Cloud
Salesforce
Scaled Agile
TOGAF
DevOps
GIT
Jenkins
Jira
Kibana
Linux
NGINX
Ansible
Artificial Intelligence
in JAVA by
Difference between abstract class and interface ?

Interface Abstract Class

1) Interface contains only abstract methods 1) Abstract class can contain abstract methods,

concrete methods or both

2) Access Specifiers for methods in interface

must be public

2) Except private we can have any access

specifier for methods in abstract class.

3) Variables defined must be public , static ,

final

3) Except private variables can have any access

specifiers

4) Multiple Inheritance in java is implemented

using interface

4)We cannot achieve multiple inheritance using

abstract class.

5) To implement an interface we use

implements keyword

5)To implement an interface we use implements

keyword
Click here to read more about JAVA

Related questions

Madanswer
0 votes
asked May 24, 2019 in JAVA by rajeshsharma
0 votes
asked May 24, 2019 in JAVA by rajeshsharma
...