Marker Interface
Click this link to subscribe our Channel : https://goo.gl/HhwC5i
Real Time example with parking system
Introduction:
Marker Interface in java is an interface with no fields or methods within it. It is used to convey to the JVM that the class implementing an interface of this category will have some special behavior.
Hence, an empty interface in java is called a marker interface. Marker interface is also called tag interface by some java gurus. In java we have the following major marker interfaces as under:
Searilizable interface
Cloneable interface
Remote interface
ThreadSafe interface
#theprogrammingguy #guideme360 #javabasics