Q1.I have used Predicate , Consumer , Function functional interfaces. Q2. Yes, we can have static and default methods in the functional interface. But only one abstract method. Q3.why functional interface ignores Object class method ? If a Class implements the interface having same method signature as in Object class , then by default every class extends Object class and it leads to conflict between the same methods defined in the object class and in the interface Please correct me if I'm wrong.
I would say it doesn’t lead to conflict, rather in this case the Object’s method already has an implementation, so declaration of such method within the interface as abstract doesn’t have any sense
Runnable interface, Consumer interface, Supplier interface is used in Functional interface but serializable interface , cloneable interface is used in Marker interface
They are not actually "ignored" If an interface is a functional interface, then it means it would have one method, which is abstract and the implementation of that abstract method needs to defined by any class implementing the interface or any lambda. When your interface has any method which is present in Object class, because all the class are derived from Object class, when you create an implementation of that interface, you would not need to define any implementation of that method -- the implementation is already present in the parent Object class.
The methods present in object class cannot be used in any functional interface, because they are already present in each class by default.... if you wish to use them then the only solution is providing a new implementation that is by changing the name of the method or by adding some arguments (method overloading).
Here i wanted to ask you one question regarding functional interface. Can functional interface implement any other functional interface or normal interface?
Any functional interface that you have used from Spring? 🤔
Function , Supplier , Predicate
@@anilkrajamoni1484might be consumer also..! 😊
Customizer
Supplier Consumer Predicate
Q1.I have used Predicate , Consumer , Function functional interfaces.
Q2. Yes, we can have static and default methods in the functional interface. But only one abstract method.
Q3.why functional interface ignores
Object class method ?
If a Class implements the interface having same method signature as in Object class , then by default every class extends Object class and it leads to conflict between the same methods defined in the object class and in the interface
Please correct me if I'm wrong.
I would say it doesn’t lead to conflict, rather in this case the Object’s method already has an implementation, so declaration of such method within the interface as abstract doesn’t have any sense
Runnable interface, Consumer interface, Supplier interface is used in Functional interface but serializable interface , cloneable interface is used in Marker interface
Please do more content like these. These are really helpful. Thank you for your videos
Thank you for uploading helpful and interestin video like this
As the definition of functional interface no issue with default and static methods, and also pls make another vedio for this. Thanks abhilash
Please upload full series of java8 thank you!
Boss great video.Thani you guruji . provide more insight s on this topic guruji ..
Hi Abhilash sir
Can you please make videos on Java8 new features
Please upload more core java videos (to learn more solid foundations like your other videos)
Looking for more videos on java8 features with details explanation like this
Learn functional interface here:
th-cam.com/video/qxtylN7V7M0/w-d-xo.html
amazing content, please make video for why was the object class methods were ignored by @functionalInterface annotation
Learn functional interface here:
th-cam.com/video/qxtylN7V7M0/w-d-xo.html
more tricky java questions please!
Please explain more topics like this .
Comparable and Runnable interfaces, Equals method was ignored, plz make another video with more questions and answers
I had used
Runnable for threads
Serializable for cilent-server comminution
Please make a interview video on Java 8 features
Please explain why "@overridden" methods are ignored
They are not actually "ignored"
If an interface is a functional interface, then it means it would have one method, which is abstract and the implementation of that abstract method needs to defined by any class implementing the interface or any lambda.
When your interface has any method which is present in Object class, because all the class are derived from Object class, when you create an implementation of that interface, you would not need to define any implementation of that method -- the implementation is already present in the parent Object class.
Hi, In your website there are no live batch. I want to join your spring boot with microservice batch
bro can you give brief about predefined functional interfaces
more video on java 8 tricky questions
Hi anna i want to watch all spring and spring boot related videos on your chaneel so how to acesss all your videos by paying the money.
Yes we need other video
The methods present in object class cannot be used in any functional interface, because they are already present in each class by default.... if you wish to use them then the only solution is providing a new implementation that is by changing the name of the method or by adding some arguments (method overloading).
Comparable interface and runnable interface
Perfect !
predicate, function, consumer, supplier
You can learn about Predicate here:
th-cam.com/video/pYx__ixuxGk/w-d-xo.html
Comparable contains compareTo() runnable contains run(),methods
runnable and callable interface
Equals method will be ignored that's why it's not be candidate for functional interface
Runnable and Compareable
Predicate, BiConsumer
You can learn about Predicate here:
th-cam.com/video/pYx__ixuxGk/w-d-xo.html
Functional Interface only because you mentioned default and statis method that is valid process only.
God❤
callable, runnable
Here i wanted to ask you one question regarding functional interface. Can functional interface implement any other functional interface or normal interface?
No
Happy Diwali 🪔
Consumer and predicate I know from ur vedios 😂😂😂
Udemyyyy😢😢😢😢
.
Consumer and predicate I know from ur vedios 😂😂😂
Cool ! 😀
can you pls provide me link of that video for the last question