Thread: What are the differences between abstract class and interface after Java 8 and 9 release?

Forum : Java SE FAQ?s and Interview Questions Java SE   09-6-2018 11:53:51 AM
User Image
Anand018

Newbie

Joined: Feb 18, 2018

Points: 100

Threads: 5

Posts: 1

What are the differences between abstract class and interface after Java 8 and 9 release?

| Quote Date : Jun 9, 2018    Views:444    

After Java 8 there are many new features has been added to interfaces like default methods and static methods and from Java 9 we can declare private methods as well inside an interface. All the features of abstract classes can be used in interfaces. So now what is the difference between abstract classes and interfaces and when to use abstract classes and when to use interfaces because it looks like whatever we can do using abstract class now we can do with interfaces also.

Comments

User Image
Amritk

Newbie

Joined : May 8, 2017

Points : 230

Threads: 57

Posts: 214

Re: What are the differences between abstract class and interface after Java 8 and 9 release?

Reply Date : Nov 9, 2018

this is duplicate questions. Still we have a multiple difference. Interface is contract between two parties. 

User Image
Hemanth18

Newbie

Joined : Sep 7, 2018

Points : 100

Threads: 3

Posts: 8

Re: What are the differences between abstract class and interface after Java 8 and 9 release?

Reply Date : Nov 5, 2018

thank you for sharing questions

Load More

No More Comments