We're retiring Oracle Learning Library by the end of 2025.
Explore tutorials and labs on docs.oracle.com/learn or access free learning content on the Oracle Learning YouTube channel.For product documentation, visit Oracle Help Center.
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.
default
Duration: 45 minutes
This content is intended for the following job role(s): Java - Core Java SE Developer
Release Date: 05-AUG-2014
Created by: Anjana Shenoy