Marker Interface

Marker Interface

View Answers

March 17, 2009 at 1:06 AM

Hi friend,

Marker interface :

In java language programming, interfaces with no methods are known as marker interfaces. Marker interfaces are Serializable, Clonable, SingleThreadModel, Event listener. Marker Interfaces are implemented by the classes or their super classes in order to add some functionality.

e.g. Suppose you want to persist (save) the state of an object then you have to implement the Serializable interface otherwise the compiler will throw an error. To make more clearly understand the concept of marker interface you should go through one more example.

Suppose the interface Clonable is neither implemented by a class named Myclass nor it's any super class, then a call to the method clone() on Myclass's object will give an error. This means, to add this functionality one should implement the Clonable interface. While the Clonable is an empty interface but it provides an important functionality.

For read more information on Marker interface visit to :

http://www.roseindia.net/java/master-java/interface.shtml

Thanks









Related Tutorials/Questions & Answers:
Marker interface
Marker interface  what is a marker interface? what is its significance
Marker Interface
Marker Interface  What is the need of Marker Interface?When should we use
Advertisements
What is a Marker Interface?
What is a Marker Interface?   Hi, What is a Marker Interface? thanks
Marker Interface,Java Marker Interface
; In this section we will learn about Interface and Marker Interfaces in Java. This tutorial will clarify you questions "What is marker Interface?" and "Why use Marker Interface?" and "difference between abstract
Marker Interface In Java
Marker Interface In Java In this section we will read about marker interface in Java. This section will describe you the various aspects of marker interface viz. what is marker interface, use of marker interface, requirement of marker
Marker Interface - Java Interview Questions
Marker Interface   Hi Deepak, Marker interface means....  Hi friend, Marker interface : In java language programming... an error. To make more clearly understand the concept of marker interface you
Marker Interface - Java Interview Questions
Marker Interface   Hi Friends, Marker interface means a method which has no methods. so what is d use of tat. I read "It is used to check that whether the instance belongs to that class". then wat is d use
problem on marker interface - Java Beginners
problem on marker interface  i want to know about marker interface... tagged or marker interface is used to just identify the class, in real time... module,this tag or marker interface is useful. *. In serialization also
marker interface - Java Interview Questions
marker interface  how to create our owen marker interface ? can u give me one example  Hi Friend, Try the following code: interface markerImp { } class MarkerTest implements markerImp{ } public class
tagged/marker interface in java - Java Beginners
tagged/marker interface in java  Hi! what is the exact meaning and usage of of tagged or marker interface. Exactly where we will use it in real time applications. thanks in advance. ashok  Hi, Marker
Diff Bn Marker Interface and instanceOf - Java Interview Questions
Diff Bn Marker Interface and instanceOf   Hi Friends, Wats d difference bn Marker Interface and instanceOf method. Thanks
difference between marker and tag interface - Java Interview Questions
between marker interface and tag interface?  Hi friend, nterface...); } Marker Interface In java language programming, interfaces with no methods... clearly understand the concept of marker interface you should go through one more
Interface in Java
; In this section we will learn about Interface and Marker Interfaces in Java. This tutorial will clarify your questions "What is marker Interface?" and "Why to use Marker Interface?" and "difference between abstract
interface
interface  What is marker interface ?? what is its use in java programming?? is this us in programming ??Explain is implementation with code
Marker interfaces in java
Marker interfaces in java  how marker interfaces work
ModuleNotFoundError: No module named 'marker'
ModuleNotFoundError: No module named 'marker'  Hi, My Python... 'marker' How to remove the ModuleNotFoundError: No module named 'marker'... to install padas library. You can install marker python with following command
interface
interface   what is the use of marking interface
interface.
interface.  Write short note on interface.   Please visit the following link: Java Interface
interface
interface  will the interface implements a interface   Hi Friend, No. Interface can extends another interface but cannot implements it, because interface will not contain the implementation. Thanks
INTERFACE
INTERFACE  how interface support multiple inheritance in java
interface
interface   Hi I have interface in that interface 3 methods are there , after some days client said that,i want to add one more method in that interface ,so how can add 4 method so that the implemented class did not affect
interface
interface  can we extend interface?   Hi Friend, Yes an interface can be extended by other interface like using extends keyword interface A{ } interface B extends A{ } For Example: interface IntefaceA { void
interface
interface  what the use of interface?   An interface is one... variables.Any class can implement(inherit)the interface and make use... is achieved by using the interface (by implementing more than one interface at a time
interface
interface  develop a library interface which has drawbook(),returnbook()(with fine),checkstatus() and reservebook() methods.all the methods tagged with public
interface
interface  develop a library interface which has drawbook(),returnbook()(with fine),checkstatus() and reservebook() methods.all the methods tagged with public
Interface
for Interface in java? and want to know why they used interface instead of multiple inheritance? Thanks in advance   An interface is one which has abstract... implement(inherit)the interface and make use of the methods(functions
interface
interface  why do we need interface in java..if it`s usefull for to obtain multiple inheritance in the sense how it gonna be achieved...and i can...)...the y we need interface...THis is question often i heard from my developer
Interface
Interface  I need to implement the interface without overriding its method and also don't use abstract class for this. How to do
ModuleNotFoundError: No module named 'magic-marker'
ModuleNotFoundError: No module named 'magic-marker'  Hi, My Python... 'magic-marker' How to remove the ModuleNotFoundError: No module named 'magic-marker' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'trademac-marker'
ModuleNotFoundError: No module named 'trademac-marker'  Hi, My... named 'trademac-marker' How to remove the ModuleNotFoundError: No module named 'trademac-marker' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'trademark-marker'
ModuleNotFoundError: No module named 'trademark-marker'  Hi, My... named 'trademark-marker' How to remove the ModuleNotFoundError: No module named 'trademark-marker' error? Thanks   Hi, In your
interface
interface  What is the exact use of interface in real time scenario? some people says that interface provides multiple inheritance. Is it true...; Through interface, we can achieve the multiple inheritance. Java does
Interface
Interface  1.Create an interface names ShapeInterface that has two... class a.Rectangle that uses the interface b.Circle that uses the interface and abstract class   interface ShapeInterface{ int l=0,b=0; public
Interface
Interface  1.Create an interface names ShapeInterface that has two... class a.Rectangle that uses the interface b.Circle that uses the interface and abstract class   interface ShapeInterface{ int l=0,b=0; public
Interface
Interface  Declare an Interface called property containting a method compute price to compute &return the price.The inerface is to be implemented by follwaing two class (1)Bungalow&(2)Flat both the lasses have following
Markable Interface
Markable Interface  In Java can we create our own Markable Interface?? If yes then how, Please explain with example   Marker interface... the concept of marker interface you should go through one more example. Suppose
null interface
null interface   what is the null interface and what is the use of it in real java project ?   Hi Friend, A null interface is an interface without any methods.Is also known as Marker interface. Null interfaces are used
Implement the Serializable Interface
Implement the Serializable Interface  hii How many methods do u implement if implement the Serializable Interface?   hiii,ADS_TO_REPLACE_1 The Serializable interface is just a "marker" interface, with no methods
ModuleNotFoundError: No module named 'pytest-fixture-marker'
ModuleNotFoundError: No module named 'pytest-fixture-marker'  Hi...: No module named 'pytest-fixture-marker' How to remove the ModuleNotFoundError: No module named 'pytest-fixture-marker' error? Thanks   Hi
ModuleNotFoundError: No module named 'pytest-manual-marker'
ModuleNotFoundError: No module named 'pytest-manual-marker'  Hi...: No module named 'pytest-manual-marker' How to remove the ModuleNotFoundError: No module named 'pytest-manual-marker' error? Thanks   Hi
ModuleNotFoundError: No module named 'pytest-marker-bugzilla'
ModuleNotFoundError: No module named 'pytest-marker-bugzilla'  Hi...: No module named 'pytest-marker-bugzilla' How to remove the ModuleNotFoundError: No module named 'pytest-marker-bugzilla' error? Thanks   Hi
ModuleNotFoundError: No module named 'odoo12-addon-fieldservice-google-marker-icon-picker'
ModuleNotFoundError: No module named 'odoo12-addon-fieldservice-google-marker...: ModuleNotFoundError: No module named 'odoo12-addon-fieldservice-google-marker...;odoo12-addon-fieldservice-google-marker-icon-picker' error? Thanks  
ModuleNotFoundError: No module named 'odoo12-addon-web-widget-google-marker-icon-picker'
ModuleNotFoundError: No module named 'odoo12-addon-web-widget-google-marker...: ModuleNotFoundError: No module named 'odoo12-addon-web-widget-google-marker-icon...;odoo12-addon-web-widget-google-marker-icon-picker' error? Thanks   
ModuleNotFoundError: No module named 'odoo8-addon-contract-recurring-invoicing-marker'
-marker'  Hi, My Python program is throwing following error...-marker' How to remove the ModuleNotFoundError: No module named 'odoo8-addon-contract-recurring-invoicing-marker' error? Thanks   Hi
What is an interface?
What is an interface?  What is an interface
Can an Interface implement another Interface?
Can an Interface implement another Interface?   Hi, Can an Interface implement another Interface? Thanks
Can an Interface extend another Interface?
Can an Interface extend another Interface?   Hi, Can an Interface extend another Interface? thanks
ServletRequest interface
ServletRequest interface   What is new in ServletRequest interface
Map interface
Map interface  What is the Map interface
Java interface
Java interface  What is the List interface

Ads