#75 Types of Interface in Java

preview_player
Показать описание
Check out our courses:

Coupon: TELUSKO10 (10% Discount)

Coupon: TELUSKO20 (20% Discount)

Udemy Courses:

For More Queries WhatsApp or Call on : +919008963671

In this lecture we are discussing types of interface:
#1
types of interface
1) Normal interface
2)functional interface /SAM
3)Marker interface

#2
i)Normal interface
Normal interface contains two or more abstract method.
It can have any number of static and default methods and also even public methods of Object classes.
you can declare variable which are public static final by deault

ii)Functional Interface:
Functional Interface is an interface that has only pure one abstract method.
It can have any number of static and default methods and also even public methods of Object classes
e.g Runnable interface : It contains only run() method

iii)
Marker Interface:
An interface that does not contain any methods, fields, Abstract Methods, and any Constants is Called a Marker interface.
Also, if an interface is empty, then it is known as Marker Interface.
The Serializable and the Cloneable interfaces are examples of Marker interfaces.

More Learning :

Donation:
PayPal Id : navinreddy20
Рекомендации по теме
Комментарии
Автор

thank you
these short lessons are fun and less frustrating.

zr
Автор

As always, great explanation, thank you!

revankumar
Автор

thank you for explanation. best teacher so far

burakkizilkaya
Автор

Question: Java 8 allows default and static methods in the interface.
Can we use that in Functional Interface?
If yes what is the real-time use case?

adityakumar
Автор

Memories theory you can't get a job in industry . I also known the each and every part of java concept theoretically with real world example and every concept related program but when I start coding logic not come to my mind.

mesmerizeart