java marker interface

Java Marker interfaces

Following table gives all the list of Java Marker interfaces. Maker interface name Functionality 1. the object is serialized 2. java.lang.Cloneable the object is cloned 3. javax.servlet.SingleThreadModel only one object of the servlet for one request is created 4. javax.ejb.EnterpriseBean the object can participate in transactions 5. java.util.RandomAccess the elements of the data structure …

Java Marker interfaces Read More »

What is Marker Interface in Java?

1. What is marker interface? By usage, a marker interface does not contain any methods or variables. It is completely empty interface and for this reason also known as empty interface. See these two marker interface definitions in Java API. java.lang.Cloneable and are two marker interfaces often used. See the output screen. No methods …

What is Marker Interface in Java? Read More »