#75 Types of Interface in Java

  Рет қаралды 75,042

Telusko

Telusko

Күн бұрын

Check out our courses:
Enterprise Java Spring Microservices: go.telusko.com...
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : go.telusko.com...
Coupon: TELUSKO20 (20% Discount)
For More Queries WhatsApp or Call on : +919008963671
Udemy Courses:
Spring: go.telusko.com...
Java:- go.telusko.com...
Java Spring:- go.telusko.com...
Java For Programmers:- go.telusko.com...
Python : go.telusko.com...
Git : go.telusko.com...
Docker : go.telusko.com...
website : courses.telusk...
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.
Github repo : github.com/nav...
Java:- bit.ly/JavaUde...
Spring:- bit.ly/SpringU...
More Learning :
Java :- bit.ly/3x6rr0N
Python :- bit.ly/3GRc7JX
Django :- bit.ly/3MmoJK6
JavaScript :- bit.ly/3tiAlHo
Node JS :- bit.ly/3GT4liq
Rest Api :-bit.ly/3MjhZwt
Servlet :- bit.ly/3Q7eA7k
Spring Framework :- bit.ly/3xi7buh
Design Patterns in Java :- bit.ly/3MocXiq
Docker :- bit.ly/3xjWzLA
Blockchain Tutorial :- bit.ly/3NSbOkc
Corda Tutorial:- bit.ly/3thbUKa
Hyperledger Fabric :- bit.ly/38RZCRB
NoSQL Tutorial :- bit.ly/3aJpRuc
Mysql Tutorial :- bit.ly/3thpr4L
Data Structures using Java :- bit.ly/3MuJa7S
Git Tutorial :- bit.ly/3NXyCPu
Donation:
PayPal Id : navinreddy20
www.telusko.com

Пікірлер: 19
@zr0724
@zr0724 Жыл бұрын
thank you these short lessons are fun and less frustrating.
@burakkizilkaya99
@burakkizilkaya99 Жыл бұрын
thank you for explanation. best teacher so far
@samplayz9557
@samplayz9557 27 күн бұрын
the king of java
@241_krunalkhapekar2
@241_krunalkhapekar2 Ай бұрын
what an explanation sir 🤩
@revankumar984
@revankumar984 Жыл бұрын
As always, great explanation, thank you!
@AkshithaAlladi
@AkshithaAlladi Ай бұрын
Happy teacher's day sir 🎉
@adityakumar2288
@adityakumar2288 Жыл бұрын
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?
@qkcb
@qkcb Жыл бұрын
You can take a look at the Java Comparator interface
@anisha7909
@anisha7909 Жыл бұрын
No,I don't think so. It should be either abstract or static.Since all methods under interface are abstract.
@mesmerizeart663
@mesmerizeart663 10 ай бұрын
​@@anisha7909dont say java 8 it's it's 1.8 after sun micro system hand over java to oracle corporation it's name change floating like criteria to 1.8 to only 9,10,11----21.According your question after 1.7v of java you can declare default method and static method inside inter face.
@anisha7909
@anisha7909 10 ай бұрын
Thank you for the information@@mesmerizeart663
@maleeshasandakalum6213
@maleeshasandakalum6213 Жыл бұрын
Fantastic sir❤❤
@shraddhapawar5674
@shraddhapawar5674 Жыл бұрын
Best tutorial
@mesmerizeart663
@mesmerizeart663 10 ай бұрын
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.
@MELIS_I
@MELIS_I 2 ай бұрын
So practice on coding bro 😅
@harshitismm
@harshitismm Жыл бұрын
Where is the next video?
@rwordspecialist6734
@rwordspecialist6734 2 ай бұрын
Khaa gye Navin sir
@md.ikramulislam9708
@md.ikramulislam9708 Ай бұрын
#72
@aka-Monster01
@aka-Monster01 9 күн бұрын
love you daddy
#76  What is Exception in Java
5:19
Telusko
Рет қаралды 87 М.
Functional Interface | Lambda Expression in Java
13:56
Telusko
Рет қаралды 154 М.
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37
Who’s the Real Dad Doll Squid? Can You Guess in 60 Seconds? | Roblox 3D
00:34
Это было очень близко...
00:10
Аришнев
Рет қаралды 6 МЛН
Why use Type and not Interface in TypeScript
14:12
ByteGrad
Рет қаралды 211 М.
#66 Need of Interface in Java
8:32
Telusko
Рет қаралды 140 М.
Lambda Expressions in Java - Full Simple Tutorial
13:05
Coding with John
Рет қаралды 756 М.
#65 What is Interface in Java
8:03
Telusko
Рет қаралды 221 М.
Java - Serialization & Deserialization
16:10
TutorialsPoint
Рет қаралды 147 М.
Java Interfaces Explained - 040
7:12
Deege
Рет қаралды 155 М.
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37