Hi All - Use link below for my popular Java courses. Virtual Threads - www.mudraservices.com/udemycoupon.html?course=vthread Java Generics - www.mudraservices.com/udemycoupon.html?course=jgen For more of my courses, check out - www.mudraservices.com
Good question. We don't require the check. The filter() and map() methods will automatically return empty optional if Users.getUser(..) returns an Empty optional. So, we can get away without any null checks.
Hi All - Use link below for my popular Java courses.
Virtual Threads - www.mudraservices.com/udemycoupon.html?course=vthread
Java Generics - www.mudraservices.com/udemycoupon.html?course=jgen
For more of my courses, check out - www.mudraservices.com
Great video @Viraj
I am glad you enjoyed
on 09:19 why are you not checking for isPresent on the example 2 below?
Good question. We don't require the check. The filter() and map() methods will automatically return empty optional if Users.getUser(..) returns an Empty optional. So, we can get away without any null checks.
Amazing
I am happy you enjoyed it !