ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
what is marker interface ? what is the necessity of it?
 Question Submitted By :: Latha
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is marker interface ? what is the necessity of it?
Answer
# 1
An interface that contains no methods. Eg: Serializable,
Cloneable, SingleThreadModel etc. It is used to just mark
java classes that support certain capability.
 
Is This Answer Correct ?    18 Yes 1 No
Sandeep
 
  Re: what is marker interface ? what is the necessity of it?
Answer
# 2
this is one type on null interface, it doesn't contain any 
methods
 
Is This Answer Correct ?    2 Yes 0 No
Tulasi Prasad
 
 
 
  Re: what is marker interface ? what is the necessity of it?
Answer
# 3
Marker interface is an interface which gives a mark to the
runtime environment. This gives a mark that "I am going to
happen". It contains no methods.
 
Is This Answer Correct ?    1 Yes 0 No
Prasanna Sahu, Munnekolal
 
  Re: what is marker interface ? what is the necessity of it?
Answer
# 4
markble interface does not contains any methods,but 
implementing of these interfaces will be recognise  by Jvm 
then it will decide that "this class is going do 
something".for example for cloneable interface implements 
by some class x which consists of a,b variable ,But I need 
to interchange instance variables a to b and b to a (pass 
by value)of class x and i want again the same values for a 
and b.At this situations we can implement cloneable 
interface.Like this markble interface are very useful as my 
knowledge........
 
Is This Answer Correct ?    2 Yes 0 No
Ganesh Reddy
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
In what types of operations an ArithmeticException will be thrown?  2
In which way does a Primitive data type is passed ? Sun-Microsystems2
What is protected and friendly?  1
What do you mean by the term transient? Ericsson4
What is "Java Native Interface" and how to use it? IBM1
What is "finally" keyword?  3
Which method is used to find that the object is exited or not?  1
How to add panel to a Frame?  2
what is a thread? IBM10
transaction attributes ?  2
what is webservices Mind-Tree4
What are the limitations for static method?  3
What is compile time polymorphism? Elementus-Technologies6
Explain the difference between getAppletInfo and getParameterInfo?  1
Which characters are allowed to use as the second character of an identifier, and which characters are not allowed?  2
When finalize method is called?  3
which one the better thread emplemented thread or extended ? Fidelity3
Can we instantiate Interfaces? Ericsson4
What is the immediate parent class of the Applet class?  1
why to use transient variables when static variables can be used for Serialization  3
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com