Marker Interface in Java || Java Interview Question(2021)

Опубликовано: 27 Октябрь 2024
на канале: Engineer's choice tutor
15,246
233

Marker Interface in Java
Java Interview Question(2021)

If a interface doesn’t contain any method or fields and by implementing that interface if our objects will get some ability such type of interfaces are called as Marker interfaces.Marker interface is used as a tag to inform a message to the compiler so that it can add special behaviour to the class implementing it.

#java
#javainterviewquestion
#interfaceinjava
#markerinterface If you want to help us for enlarging our channel, then please donate us by your own wish:
Paytm: 7509058785
Upi: 7509058785@ybl