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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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
why marker interfaces are there in java
 Question Submitted By :: Sudha
I also faced this Question!!     Rank Answer Posted By  
 
  Re: why marker interfaces are there in java
Answer
# 1
When a class implements a marker interface, then the object
of that class is given with a special behavior. For example
if a class implements remote interface(available in
java.rmi.* package) object of that class acts as a Remote
Object. For this reason java provides Marker Interface.
 
Is This Answer Correct ?    4 Yes 2 No
Ravinder
 
  Re: why marker interfaces are there in java
Answer
# 2
Marker interfaces can create an environment.

Marker interfaces are used to specify that a class belongs 
to a logical family or grouping - as quoted above, 
Cloneable is used to indicate that a particular class can 
be cloned, or Serializable is used to indicate that a 
particular class can be serialized.
 
Is This Answer Correct ?    1 Yes 0 No
Siva Kumar G
 
 
 
  Re: why marker interfaces are there in java
Answer
# 3
when class implements marker interface our class object
getting special behavoiur.
EX:-
suppose our class implements java.lang.Serializible 
interface our class object getting special behaviour(our
class object converting java support format object to
network support)

Another Example our class implements java.rmi.Remote
interface our class object acts as Remote object.
 
Is This Answer Correct ?    0 Yes 0 No
Srinu
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is features of jdk 1.5? TCS2
What is Three tier architecture. Can anyone explain with a Ordinary web application Project? (JSP,Servlets,JAVA,DAO) ? TCS1
what is overloading and overriding with example? CMC1
Write program to print Hello World and print each character address in that string and print how many times each character is in that string? Ex: H: 0 & 1 e:1 & 1 l :2,3,8 & 3 o:4,6 & 2 w:5 & 1 r: 7 & 1 d 9 & 1 Huawei3
What is meant by JVM ?  3
How applets will communicate with each other?  1
why is multiple inheritance not allowed in java? Elementus-Technologies5
What are order of precedence and associativity, and how are they used?  1
What classes of exceptions, caught by a catch clause?  1
Explain in detail about encapsulation with an example?  3
If you are reviewing the code of your team members, what points will you look at, assuming the performance of the application is not so great KPIT2
explain System.out.println IBM41
How the elements are organized in GridLayout?  1
How to access a method that it declared as protected?  3
What are other modifiers? Wipro1
How OOPS concept is achieved in Java? JPMorgan-Chase4
How to eliminate duplicates from an array? Wipro3
what is the use of declaring constructor as private? Sai-Softech3
what is the difference between sleep() and Wait()? Accenture4
What is an object?s lock? Give name of object?s that have locks?  1
 
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