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

Комментарии • 49

  • @SeleniumExpress
    @SeleniumExpress  6 месяцев назад +6

    Any functional interface that you have used from Spring? 🤔

  • @jayakumarsivasankar9683
    @jayakumarsivasankar9683 6 месяцев назад +33

    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.

  • @rupeshswain4830
    @rupeshswain4830 6 месяцев назад +3

    Runnable interface, Consumer interface, Supplier interface is used in Functional interface but serializable interface , cloneable interface is used in Marker interface

  • @durgakothapalli7736
    @durgakothapalli7736 6 месяцев назад

    Please do more content like these. These are really helpful. Thank you for your videos

  • @user-ui1qi9xt6j
    @user-ui1qi9xt6j 6 месяцев назад +1

    Thank you for uploading helpful and interestin video like this

  • @srinivasperuri2189
    @srinivasperuri2189 6 месяцев назад

    Boss great video.Thani you guruji . provide more insight s on this topic guruji ..

  • @yespavan662
    @yespavan662 6 месяцев назад +3

    Hi Abhilash sir
    Can you please make videos on Java8 new features

  • @abhishekverma6658
    @abhishekverma6658 6 месяцев назад

    Please explain more topics like this .

  • @SaahilShaikh
    @SaahilShaikh 3 месяца назад

    more tricky java questions please!

  • @rajeswarijajam1221
    @rajeswarijajam1221 6 месяцев назад +1

    As the definition of functional interface no issue with default and static methods, and also pls make another vedio for this. Thanks abhilash

  • @suseesenthil417
    @suseesenthil417 6 месяцев назад +1

    Please upload more core java videos (to learn more solid foundations like your other videos)

  • @devakichaitanya4298
    @devakichaitanya4298 6 месяцев назад +2

    Comparable and Runnable interfaces, Equals method was ignored, plz make another video with more questions and answers

  • @moeezahmed9774
    @moeezahmed9774 6 месяцев назад

    I had used
    Runnable for threads
    Serializable for cilent-server comminution

  • @nikitamungane9492
    @nikitamungane9492 6 месяцев назад

    Please upload full series of java8 thank you!

  • @villagevibes8056
    @villagevibes8056 6 месяцев назад

    Yes we need other video

  • @sidharthamishra7759
    @sidharthamishra7759 6 месяцев назад

    Please make a interview video on Java 8 features

  • @neetusingh6647
    @neetusingh6647 3 месяца назад

    more video on java 8 tricky questions

  • @Anupam_Biswas
    @Anupam_Biswas 6 месяцев назад

    Hi, In your website there are no live batch. I want to join your spring boot with microservice batch

  • @DurgaShiva7574
    @DurgaShiva7574 6 месяцев назад +1

    amazing content, please make video for why was the object class methods were ignored by @functionalInterface annotation

    • @codippa
      @codippa 5 месяцев назад

      Learn functional interface here:
      ruclips.net/video/qxtylN7V7M0/видео.html

  • @naveenmekala3604
    @naveenmekala3604 6 месяцев назад

    Comparable contains compareTo() runnable contains run(),methods

  • @sivateja-ew1go
    @sivateja-ew1go 6 месяцев назад

    Looking for more videos on java8 features with details explanation like this

    • @codippa
      @codippa 5 месяцев назад

      Learn functional interface here:
      ruclips.net/video/qxtylN7V7M0/видео.html

  • @donthamsettisai8229
    @donthamsettisai8229 6 месяцев назад

    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.

  • @shubhammanecr7
    @shubhammanecr7 5 месяцев назад

    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).

  • @AdityaKumar-cy2cr
    @AdityaKumar-cy2cr 6 месяцев назад +5

    Please explain why "@overridden" methods are ignored

    • @9429963654
      @9429963654 6 месяцев назад

      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.

  • @sfgmbkmbksfg3722
    @sfgmbkmbksfg3722 6 месяцев назад

    God❤

  • @umamahesh214
    @umamahesh214 6 месяцев назад

    runnable and callable interface

  • @amitbhagat1356
    @amitbhagat1356 6 месяцев назад

    Equals method will be ignored that's why it's not be candidate for functional interface

  • @naveenmekala3604
    @naveenmekala3604 6 месяцев назад +1

    Comparable interface and runnable interface

  • @karthikpatnam-ki8yf
    @karthikpatnam-ki8yf 6 месяцев назад

    predicate, function, consumer, supplier

    • @codippa
      @codippa 6 месяцев назад

      You can learn about Predicate here:
      ruclips.net/video/pYx__ixuxGk/видео.html

  • @rajeswarijajam1221
    @rajeswarijajam1221 6 месяцев назад

    Consumer and predicate I know from ur vedios 😂😂😂

  • @sanketh768
    @sanketh768 6 месяцев назад

    Predicate, BiConsumer

    • @codippa
      @codippa 6 месяцев назад

      You can learn about Predicate here:
      ruclips.net/video/pYx__ixuxGk/видео.html

  • @deadoralive8296
    @deadoralive8296 6 месяцев назад

    Happy Diwali 🪔

  • @meevizagabbai
    @meevizagabbai 6 месяцев назад

    Here i wanted to ask you one question regarding functional interface. Can functional interface implement any other functional interface or normal interface?

  • @salmasultana8155
    @salmasultana8155 6 месяцев назад

    Udemyyyy😢😢😢😢

  • @shahidavalisyed487
    @shahidavalisyed487 6 месяцев назад

    .

  • @rajeswarijajam1221
    @rajeswarijajam1221 6 месяцев назад

    Consumer and predicate I know from ur vedios 😂😂😂