Java 8
Method Reference
To shorten the syntax with the help of for Each
Default Methods
To declare the function in the interface, so that we can apply the function directly without implementation of interface
Stream
To take array List or Collection as a input and output as another format
Filter: Filter out the input when the data is false
Limit: set the number of output size
map: change into other format
Optional
Allow value of null and do null handling to prevent from NullPointer Exception
Local Date
It is used to replace traditional java.util.Date
Here is the example convert string into local date time format
Reference
Last updated
Was this helpful?