What is marker Interface

hi
what is marker interface
what is the use of it
plz give me reply
bye

Marker interface is an interface without any method.
Eg : Serializable
refer this link
http://forum.java.sun.com/thread.jspa?threadID=597388&messageID=3787740

Similar Messages

  • What is the significance of Marker interface? Why are we using, even though

    What is the significance of Marker interface? Why are we using, even though it has no method?

    Well, what's the significance of an interface? They can define a set of methods a class may implement but the class could equally well implement these methods without the interface so why having interfaces at all?
    The answer is that the most important aspect of an interface is that it constitutes a type (you can declare variables of it). And it's a type regardless of how many methods it defines, including none. So the reason for having a marker interface is that you're interested solely in the type aspect of interfaces.

  • What is the use of Marker Interfaces?

    What is the use of marker interfaces?
    As it is not having any methods or fileds what is the benefit I will get by implementing those interfaces?
    Servlet implements SingleThread
    What it will do behind the scenes exactly as singleThread model is marker interface

    The use of marker interfaces is to act as markers (shock horror)
    It is quite a common way to tell a program what a class can/can't do: Cloneable, Serializable etc etc
    This doesn't change the functionality of the class itself, but is more an indication as to what can be done with this class.
    In this case the servlet container can then tell whether or not it implements the interface, and can treat it accordingly. Implementing this interface tells the container you want it to run this servlet in singleThreaded mode.
    Thats all there is to it.
    It would be along the lines of
    Servlet servlet = loadServlet("...")
    if (servlet instanceof SingleThreadModel){
    // Single threaded servlet - start new process for it
    else {
    // regular servlet - reuse existing object.

  • Use of marker Interface

    can any bdy plz tell me what is the use of marker interface ????

    Please search the forums before asking such a common question.

  • What is Markable Interface in JAVA

    What is Markable Interface in JAVA need explanation

    Markable interface in one which does not contain any
    method or member declaration.
    Eg: Serializable, Observable etc...terminology aside, I don't think "not containing any methods" is enough to call something a marker interface. is EventListener a marker interface? I don't think so, I think of it as a supertype for all other event listeners in the JDK

  • MARKER INTERFACE WHY?

    hello i madhav new to this forum , i have doubt on marker interface . as it doesnot have any body why we r using that one instead of skipping.Is there any concept behind is there.More about my doubt is Take Example Cloneable Interface it Doesn't Have any Method In it,Clone() method is from Object class,then what is the necessity of implementing the interface .Why it should not be like that.
    what is real technolgy behind MarkerInteface and Why we r going to be used in what situations it will needed.And Lastly is there any method related to Serailizable interface if not what it do .
    marker interface can also called as Tag interface what is tag mean here just saying combing derived classes . i didn't get that one and how it will be .
    if u could explain with example or real time project it would be better for me
    thanks in advance

    What is a "marker" interface?
    Marker Interface pattern
    c2.com - Marker Interface
    experts.about.com - Marker Interfaces
    The Purpose of the Marker Interface
    Maximize your Design ROI with Marker Interfaces and JavaDoc

  • Marker interface query?

    what is the use of marker interface ?
    serializable ,clonable ,Runnable interfaces are marker interfaces .
    when any of the classes implemets these interfaces that classes will get the properities of marker interfaces .
    But , what r those properties?
    what is happening in back ground when we implements these marker interfaces ?

    what is the use of marker interface ?Let me ask a quesiton to you first: what is the use of a forum search?
    serializable ,clonable ,Runnable interfaces are
    marker interfaces .Not Runnable.
    when any of the classes implemets these interfaces
    that classes will get the properities of marker
    interfaces .If you mean by "implementing" only that it'll be included in the implements declaration: you're wrong. You also make sure that your class complies with the restrictions/behaviour imposed.
    what is happening in back ground when we implements
    these marker interfaces ?Nothing.

  • Marker interfaces

    what is the use of marker interfaces when do not specify any methods?

    This is discussed about once every week or every other week on this site. I suggest that you search this site for those previous discussions. They will have all you need. Also, have a look at google and wikipedia:
    http://en.wikipedia.org/wiki/Marker_interface_pattern

  • About Marker Interfaces

    what is the use of marker interfaces and y do we need them

    Here's an example I'm using:
    I've got a program which displays lots of tables, it doesn't just display them, it prints them and it dumps them to Excell files.
    Many of these tables have a total row at the bottom which needs highlighting. I flag the TableModel with a marker interface of my own. Then the various ways that table data is handled, when passed the TableModel, know to use a modifled JTable, or to use special formating flags on the last row.

  • Failed to get DHCP response on interface "Marking interface dirty"

    Dears
    i have WLC 5508 showing the below Logs , which prevent the users from connecting to the SSIDs , also its disconnecting the associted users
    DHCP Socket Task: Jul 11 09:54:08.992: %SIM-3-DHCP_SERVER_NO_REPLY: sim_interface.c:1039 Failed to get DHCP response on interface 'interface-02'. Marking interface dirty.
    *mmListen: Jul 11 09:54:08.638: %MM-3-INVALID_PKT_RECVD: mm_listen.c:7671 Received an invalid packet from 10.21.1.25. Source member:0.0.0.0. source member unknown.
    it shows 3 to 4 times durring 1 hour ,        
    any idea about the problem , and what exactly Dirty interface means ??

    looks like you could be using interface group.
    (WLC) >show interface group detailed
    Interface marked with * indicates DHCP dirty interface.
    whenever the existing interface goes dirty does the client tries the next available interface for dhcp.
    The idea of Interface Groups is that you can have a WLAN utilize multiple interfaces/VLANs/Subnets/DHCP Pools, either for load balancing. At its heart it is purely round robin or based on hash generated using mac address(it depends on the wlc code), but should a client connect in on a certain interface and not be able to complete the DHCP process we mark it as dirty for 30 minutes.  During those 30 minutes we basically remove that Interface from the Interface Group as it won't be selected for use.

  • Is Externalizable is a marker interface???

    hey,
    What is a marker interface??? it should not have any methods, isn't it???then why is that the interface externalizable called as a marker ???
    can anybody tell me the reason??

    What is a marker interface??? An interface that marks objects that have a certain, usually non-enforcible behaviour. Like Serializable marks objects that are supposed to be defined in a way that they can be serielaized, i.e. no non-transient, non-serializable members.
    it should not have any
    methods, isn't it???It often doesn't, but I don't see why that's a necessity.
    then why is that the interface
    externalizable called as a marker ???
    can anybody tell me the reason??See above, who said it's not allowed to?

  • Marker Interface

    Hi,
    The Marker Interface is interface with no body(it serve only as a Tag) . So what is thew use of it.Can we write our own Marker Interface?if yes how?
    How does a clone method knows that the calling object implements Clonable?Is this hard coded in the compiler or JVM ?
    Thanks
    Bipul

    The Marker Interface is interface with no body(it
    serve only as a Tag) . So what is thew use of it.To mark that a certain class's implementation includes the necessary precautions for objects of that cass to be safely cloned/serialized/whatevered...
    Can
    we write our own Marker Interface?if yes how?As you noticed: simply write an interface without methods. Duh...
    How does a clone method knows that the calling object
    implements Clonable?Is this hard coded in the
    compiler or JVM ?instanceof

  • JSF-Marker Interface

    Hai Friends
    I want to know what is use of marker interface in java(JSF) and also how it is working without having even single method declaration & definitions inside that interfece like Remote interface,serialization and so on.
    Thanks
    Selvakumar .k

    Marker Interfaces work the same way as they do anywhere else. Please read about marker interfaces.

  • How to find out what are the interfaces used for Job and Job Codes

    HI All,
    I just wanted to know how do we find out what are the interfaces used for Job and Job codes .
    Thanks In Advance
    Sunny

    Hi,
    Here is an idea for your request.
    Basically you can create a simple query on multiprovider 0TCT_MC01.
    Filter: you can use a variable for restriction of time ( calday, or calmonth) since you should be interested for a time period.
    Choose following characters into your objects:
    InfoProvider ( 0TCTIFPROV )  - you can create a variable for choosing infoprovider before query runs.
    *Tp.[Type of BI Application Object] 0TCTBISOTYP  = filter this with 'QUERY' or whatever your need is.
    *BI Application Object 0TCTBISBOBJ,  ( this will give you the name of the queries)
    In key figures choose,  Count for BI Appl. (0TCTWTCOUNT).
    (number for query run)
    Create a condition , for top 20.
    Hope this helps.
    Derya

  • What are the Interfaces in ABAP

    Hi all,
    What are the Interfaces in ABAP ?
    send me any material on the same

    Dear
    Interface are basically used to upload large amt of data in SAP .
    Intrfaces are Automation of BDCS..
    Search for BDC'S IN FORUM u will get lots of material on same
    Rgds
    Santo

Maybe you are looking for