Functional Interface

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

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

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

    Good explanation. Also, it's good to mention overriding the public methods of java.lang.Object doesn't count towards the interfaces abstract methods count. Example: Comparator functional interface has 2 abstract methods, but equals(Object obj) doesn't count for abstract method since any implementation of the interface will have an implementation from java.lang.Object.

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

      You are right. I purposely ommited that part from video. I wanted to people try this out by themselves and check what happens. Thanks for sharing