Home

OLL Mobile

FAQ

Java SE 8: Implementing Default Methods in Interfaces

    • Rating:

General Information

  • Prior to Java SE 8, interfaces in Java could contain only method declarations and no implementations, and any nonabstract class implementing the interface had to provide the implementation. This limitation made it almost impossible to extend the existing interfaces and APIs. To overcome this limitation, a new concept, called default methods, is introduced in Java SE 8. The default methods are fully implemented methods in an interface, and they are declared by using the keyword default. Because the default methods have some default implementation, they help extend the interfaces without breaking the existing code.

    Release Date: 05-Aug-14

    Duration: 45 minutes

    Credited To: Anjana Shenoy

    Need Flash Plugin

Reviews

  • manisharma.cs

    07-Aug-14

    than , i think no any difference in Abstract class and interface.

Associated Products

Visit the Full Site | About Oracle | Contact Us | Terms of Use