Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners problem on marker interface
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


gangasrinivas
problem on marker interface
1 Answer(s)      6 years ago
Posted in : Java Beginners



Advertisement
View Answers

January 8, 2009 at 4:29 AM


Hi friend,


* In general tagged or marker interface is used to just identify the class, in real time projects there are so many classes,in order to identify which class belongs to which module,this tag or marker interface is useful.

*. In serialization also,if we want to serialize the object,first it will internally checks whether the class is implementing java.io.serializable interface by using instanceof operator.

* In rmi also every remote class should implement java.rmi.remote interface.

Here is simple example:

public interface roseDemo{

}
public class computer implements roseDemo{
int no;
String name;
}

public class Sample {
computer com =new computer();

if(com instanceof roseDemo) {
com.name="Welcome to roseindia";

}
}

-------------------------------------------------------

Visit for more information:

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

Thanks


Related Tutorials/Questions & Answers:
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
Marker interface  what is a marker interface? what is its significance
Advertisements
Marker Interface
Marker Interface  What is the need of Marker Interface?When should we use
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
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
can interface solve this problem in java
can interface solve this problem in java  I have a JDialog which displays the calendar [from 2010-2020], i created this in a different class... this calander class. can interface solve this problem. If yes then how. pls
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
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  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   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   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  how interface support multiple inheritance in java
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
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
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
Advertisements
 

 

 

DMCA.com