Can u please tell why java is pass by value and not pass by reference ?
@ingoba074 жыл бұрын
In the ppt, you said Interface with single abstract method, default method and static method are not functional interface. I think this needs to be corrected?
@AJ-fb9pk2 жыл бұрын
It is a wrong statement ofcourse, that is a myth that he mentioned. MYTH implies something that is believed by people to be true but actually is false.
@mrkachary4 жыл бұрын
Pretty confusing. I understand your argument of Functional Interface were there earlier too and now have been coined. This is because of streams and lambda usage. I understand that the concept is borrowed from scala. This leads to confusion that what makes Java 8 more popular. Is it just perception of usage or anything related to new. Please explain
@ByteProgrammingVedantHarish4 жыл бұрын
Let me try like this : 1. We have Runnable, Comparable, Comparator interface. They are functional interface. They are before Java 8 also. So, as you also pointed, Functional interface concepts and usage was before Java 8 also. So, saying Functional interface is introduced in Java 8 is contradictory. 2. What makes Java 8 more popular -> Lambda and Stream. Lambda has changed the way of writing code. Example : Try writing a comparator with lambda in Java 8 and try same with Java 7. 3. With Java 8, we have lambda and new interfaces like Predicate, Supplier. They are also functional interface. And these supports stream and helps you to achieve functional programming.
@tulasiramsunkara3 жыл бұрын
@Byte Programming : I believe Comparable is not a Functional Interface.