As a cherry on top - that substitution of an anonymous class with lambda expression you demonstrated works for functional interfaces only.
You can also use lambda expression in implementing your custom sorting, like if you want to sort a given string array on the basis of number of vowels present inside each string then you can write a lambda expression for it and get your desired result
Great shorts! Keep them coming!
No bro, as a java developer we must have our focus on syntax also, otherwise in interview we will forget the syntax and they will surely ask to write the code in notepad & eventually we will fail the interview, Based on real incidence happened today with me 😢
JS developers: we had such syntax in callbacks ages ago
Your explanation is very clear
@navin you could give a better example where this approach would be useful. In some cases like comparator, it just needs a function to say how to compare. But in traditional syntax we write whole instantiaon. With lambda expressions or functions we can just write the function only
You deserve more appreciation
Please make more reels like this
Shorts are so good to remember in shorts.. thank you
Great Short!
Good ❤
Keep more short videos
Code and especially the lambda snippet is covered by the support/super like button
Need much more❤
hello sir ...I explain the concept of X-shape pattern in numbers python
hai sir , we need more shots...
Very nice program 👍
how did you create a object of a interface? please explain
@VedantSawale-pg7ul