Tricky java 8 interview questions on Functional Interface | Can we Override a Object class method ?

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ม.ค. 2025

ความคิดเห็น • 55

  • @SeleniumExpress
    @SeleniumExpress  ปีที่แล้ว +7

    Any functional interface that you have used from Spring? 🤔

    • @anilkrajamoni1484
      @anilkrajamoni1484 ปีที่แล้ว +1

      Function , Supplier , Predicate

    • @omit_krish
      @omit_krish ปีที่แล้ว

      ​@@anilkrajamoni1484might be consumer also..! 😊

    • @jadduravi4708
      @jadduravi4708 ปีที่แล้ว +1

      Customizer

    • @santhoshchandran6952
      @santhoshchandran6952 6 หลายเดือนก่อน +1

      Supplier Consumer Predicate

  • @jayakumarsivasankar9683
    @jayakumarsivasankar9683 ปีที่แล้ว +35

    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.

    • @ОлексійМоренець
      @ОлексійМоренець 7 หลายเดือนก่อน +1

      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

  • @rupeshswain4830
    @rupeshswain4830 ปีที่แล้ว +5

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

  • @durgakothapalli7736
    @durgakothapalli7736 ปีที่แล้ว

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

  • @AnhNguyen-z5u8o
    @AnhNguyen-z5u8o ปีที่แล้ว +2

    Thank you for uploading helpful and interestin video like this

  • @rajeswarijajam1221
    @rajeswarijajam1221 ปีที่แล้ว +1

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

  • @nikitamungane9492
    @nikitamungane9492 ปีที่แล้ว +1

    Please upload full series of java8 thank you!

  • @srinivasperuri2189
    @srinivasperuri2189 ปีที่แล้ว +1

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

  • @yespavan662
    @yespavan662 ปีที่แล้ว +4

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

  • @suseesenthil417
    @suseesenthil417 ปีที่แล้ว +1

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

  • @sivateja-ew1go
    @sivateja-ew1go ปีที่แล้ว

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

    • @codippa
      @codippa ปีที่แล้ว

      Learn functional interface here:
      th-cam.com/video/qxtylN7V7M0/w-d-xo.html

  • @DurgaShiva7574
    @DurgaShiva7574 ปีที่แล้ว +1

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

    • @codippa
      @codippa ปีที่แล้ว

      Learn functional interface here:
      th-cam.com/video/qxtylN7V7M0/w-d-xo.html

  • @SaahilShaikh
    @SaahilShaikh 11 หลายเดือนก่อน

    more tricky java questions please!

  • @abhishekverma6658
    @abhishekverma6658 ปีที่แล้ว

    Please explain more topics like this .

  • @devakichaitanya4298
    @devakichaitanya4298 ปีที่แล้ว +2

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

  • @moeezahmed9774
    @moeezahmed9774 ปีที่แล้ว

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

  • @sidharthamishra7759
    @sidharthamishra7759 ปีที่แล้ว

    Please make a interview video on Java 8 features

  • @AdityaKumar-cy2cr
    @AdityaKumar-cy2cr ปีที่แล้ว +5

    Please explain why "@overridden" methods are ignored

    • @anand_undavia
      @anand_undavia ปีที่แล้ว

      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.

  • @Anupam_Biswas
    @Anupam_Biswas ปีที่แล้ว

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

  • @akhilachary5749
    @akhilachary5749 5 หลายเดือนก่อน

    bro can you give brief about predefined functional interfaces

  • @neetusingh6647
    @neetusingh6647 11 หลายเดือนก่อน

    more video on java 8 tricky questions

  • @donthamsettisai8229
    @donthamsettisai8229 ปีที่แล้ว

    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.

  • @villagevibes8056
    @villagevibes8056 ปีที่แล้ว

    Yes we need other video

  • @shubhammanecr7
    @shubhammanecr7 ปีที่แล้ว

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

  • @naveenmekala3604
    @naveenmekala3604 ปีที่แล้ว +1

    Comparable interface and runnable interface

  • @karthikpatnam-ki8yf
    @karthikpatnam-ki8yf ปีที่แล้ว

    predicate, function, consumer, supplier

    • @codippa
      @codippa ปีที่แล้ว

      You can learn about Predicate here:
      th-cam.com/video/pYx__ixuxGk/w-d-xo.html

  • @naveenmekala3604
    @naveenmekala3604 ปีที่แล้ว

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

  • @umamahesh214
    @umamahesh214 ปีที่แล้ว

    runnable and callable interface

  • @amitbhagat1356
    @amitbhagat1356 ปีที่แล้ว +1

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

  • @syedshafath2300
    @syedshafath2300 7 หลายเดือนก่อน

    Runnable and Compareable

  • @sanketh768
    @sanketh768 ปีที่แล้ว

    Predicate, BiConsumer

    • @codippa
      @codippa ปีที่แล้ว

      You can learn about Predicate here:
      th-cam.com/video/pYx__ixuxGk/w-d-xo.html

  • @ThankUAll4Support
    @ThankUAll4Support 6 หลายเดือนก่อน

    Functional Interface only because you mentioned default and statis method that is valid process only.

  • @sfgmbkmbksfg3722
    @sfgmbkmbksfg3722 ปีที่แล้ว

    God❤

  • @palanim499
    @palanim499 3 หลายเดือนก่อน

    callable, runnable

  • @meevizagabbai
    @meevizagabbai ปีที่แล้ว

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

    • @slucky...
      @slucky... 9 หลายเดือนก่อน

      No

  • @deadoralive8296
    @deadoralive8296 ปีที่แล้ว

    Happy Diwali 🪔

  • @rajeswarijajam1221
    @rajeswarijajam1221 ปีที่แล้ว

    Consumer and predicate I know from ur vedios 😂😂😂

  • @salmasultana8155
    @salmasultana8155 ปีที่แล้ว

    Udemyyyy😢😢😢😢

  • @shahidavalisyed487
    @shahidavalisyed487 ปีที่แล้ว

    .

  • @rajeswarijajam1221
    @rajeswarijajam1221 ปีที่แล้ว

    Consumer and predicate I know from ur vedios 😂😂😂