+1 vote
in JAVA by
Why we use interface in java?

1 Answer

0 votes
by

Why we use interface in java?

It is used to achieve total abstraction. Since java does not support multiple inheritance in case of class, but by using interface it can achieve multiple inheritance . It is also used to achieve loose coupling. Interfaces are used to implement abstraction.

Related questions

+1 vote
asked Oct 27, 2020 in JAVA by sharadyadav1986
+1 vote
asked Apr 15, 2021 in JAVA by SakshiSharma
...