Results 1 to 4 of 4

Thread: Marker interface

  1. #1

    Question Marker interface

    hi
    iam praveen vootla

    what is Marker interface?give Examples?


  2. #2
    Banned
    Join Date
    Jan 2008
    Answers
    25

    Re: Marker interface

    Hi,
    Marker interface means it doesnot have any methods.It means by implementing marker interface we need not implement any methods it just intimates to the JVM to do some specific operation.
    Examples of marker interfaces are:
    1)SingleThreadModel,
    2)Serializable
    3)Remote


    Thanks
    --Suresh--


  3. #3
    Junior Member
    Join Date
    Sep 2007
    Answers
    1

    Re: Marker interface

    Hi suresh thanks for that answer but tell me is it exact definition for Marker interface that any interface having no methods is marker interface
    and is java.lang.Comparable is marker interface?
    thanks in advance


  4. #4
    Junior Member
    Join Date
    Nov 2006
    Answers
    5

    Re: Marker interface

    Comparable is not a marker interface as it has one method

    int compareTo(Object o).


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact