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