Java Unit 3.Pdf1
Java Unit 3.Pdf1
Unit-3
Stream API is a newly added feature to the Collections API in Java 8. A
stream represents a sequence of elements & supports different operations
(Filter, Sort, Map, and Collect) from a collection.
Static method is a static member to the Interface, cant be overridden
(as with the class), default method is the default implementation of a
method which might be overridden.
Difference between Static Interface Method and Default Interface Method
ForEach Method
This is how JDK now looks
like. On the bottom, we
have “java.base” module
that every other module
implicitly or explicitly depends
on. As you can see, this
dependency graph is
a DAG which means no
circular dependency allowed.