srikotesh
asked on
Interface with default methods vs Abstract class in Java 8
Hi Experts,
when to use default methods of interface?
why default method is introduced?
we can achieve same with abstract class?
can some one provide explanation with example?
Thanks
when to use default methods of interface?
why default method is introduced?
we can achieve same with abstract class?
can some one provide explanation with example?
Thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
can you please provide bit clarity on the below statements
interface with default methods means definitions with some implementations - no data
implementation will be there with out data?
abstract class means methods with definitions and some implementations plus data