JAVA 8 DEFAULT METHODS IN INTERFACE

45 views · Published 21 December 2016 · 1:44 · Indexed 24 October 2026

Channel: Interview DOT · 2016 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. Java 8 introduces a new concept of default method implementation in interfaces.

Java 8 introduces default method so that List/Collection interface can have a 
default implementation of forEach method, and the class implementing these interfaces
need not implement the same.

More from this channel