Marker Interface in Java

Опубликовано: 04 Октябрь 2024
на канале: Bytecode Velocity
4,730
63

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