Tricky java 8 interview questions on Functional Interface | Can we Override a Object class method ?
HTML-код
- Опубликовано: 31 май 2024
- In this video we will discuss about some tricky java 8 interview questions on Functional interface. We will discuss some use-cases based on method overloading and method overriding with respect to object class methods.
Timestamp:
-----
00:00 - Marker Interface vs functional Interface
02:52 - Can we override a Object class Method inside functional Interface?
#javainterview #javainterviewquestions
For more free/paid courses visit
www.seleniumexpress.com
LINKS AND FREE LEARNING RESOURCES
========
Watch my new mock interview series for java developers
• Java interview questio...
Watch my new Hello spring boot series
• Spring Vs Spring Boot ...
Watch Spring boot Hot topics
• @Reposicotry Vs @Servi...
Java Interview / Question and Answer series
• Java collections inter...
Explain spring Bean Lifecycle
• REAL-TIME: Spring Bean...
spring core
• Spring framework tutor...
spring mvc
• Spring MVC course intr...
spring mvc intermediate
• [INTERMEDIATE] Spring ...
Spring JDBC
• Spring JDBC Course Pre...
spring live project
• #1 Build and Deploy A ...
SPRING SECURITY COURSE[NEW]
• Spring Security Course...
For more courses visit
www.seleniumexpress.com
Any time you are getting stuck with issues, Feel free to ask for support.
You can send mail to seleniumexpress@gmail.com
you can ping me on my Facebook page
/ seleniumexpress
Make sure to join my private Facebook page (Ask me here)
“SeleniumExpress - Support"
/ 187000222361579
you can ask for support in my website forum
www.seleniumexpress.com
Subscribe to my youtube channel
/ @seleniumexpress
Follow me on Insta
/ selenium_express
Any functional interface that you have used from Spring? 🤔
Function , Supplier , Predicate
@@anilkrajamoni1484might be consumer also..! 😊
Customizer
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.
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
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 explain more topics like this .
more tricky java questions please!
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 more core java videos (to learn more solid foundations like your other videos)
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 upload full series of java8 thank you!
Yes we need other video
Please make a interview video on Java 8 features
more video on java 8 tricky questions
Hi, In your website there are no live batch. I want to join your spring boot with microservice batch
amazing content, please make video for why was the object class methods were ignored by @functionalInterface annotation
Learn functional interface here:
ruclips.net/video/qxtylN7V7M0/видео.html
Comparable contains compareTo() runnable contains run(),methods
Looking for more videos on java8 features with details explanation like this
Learn functional interface here:
ruclips.net/video/qxtylN7V7M0/видео.html
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.
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).
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.
God❤
runnable and callable interface
Equals method will be ignored that's why it's not be candidate for functional interface
Comparable interface and runnable interface
Perfect !
predicate, function, consumer, supplier
You can learn about Predicate here:
ruclips.net/video/pYx__ixuxGk/видео.html
Consumer and predicate I know from ur vedios 😂😂😂
Predicate, BiConsumer
You can learn about Predicate here:
ruclips.net/video/pYx__ixuxGk/видео.html
Happy Diwali 🪔
Here i wanted to ask you one question regarding functional interface. Can functional interface implement any other functional interface or normal interface?
No
Udemyyyy😢😢😢😢
.
Consumer and predicate I know from ur vedios 😂😂😂
Cool ! 😀
can you pls provide me link of that video for the last question