GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java
Go To First  |  Previous Question  |  Next Question 
 Core Java  |  Question 415 of 502    Print  
What is the use of Empty Interface?

  
Total Answers and Comments: 5 Last Update: April 14, 2009     Asked by: srinu 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 17, 2007 02:39:16   #1  
sadikmca2004 Member Since: February 2007   Contribution: 2    

RE: What is the use of Empty Interface?
The Other Name for such interface is Marked or Tagged Interface's.

The following are the some examples of such Interface's
1)Serialiazable
2)Cloneable
there r many such interface's in java using such Interface's will get the previleged permission's from the jvm.

example: any class implement's serialiazable interface such class object's transferable from one system to the other.

 
Is this answer useful? Yes | No
August 03, 2007 05:19:26   #2  
sujatham Member Since: January 2006   Contribution: 142    

RE: What is the use of Empty Interface?

Interfaces with empty bodies are often used as markers to tag classes as having a certain property or behavior. Such interfaces are also called ability interfaces. Java APIs provide several examples of such marker interfaces: java.lang.Cloneable java.io.Serializable java.util.EventListener.


 
Is this answer useful? Yes | No
February 22, 2008 06:34:44   #3  
sampra Member Since: February 2008   Contribution: 278    

RE: What is the use of Empty Interface?
marker interface's in java using such Interface's will get the previleged permission's from the jvm.
 
Is this answer useful? Yes | No
March 06, 2008 01:36:36   #4  
sampra Member Since: February 2008   Contribution: 278    

RE: What is the use of Empty Interface?
Cloneable Serializable EventListener singleThread model RAndom Access are the marker interface and they just inform to JVM to provide particular property in the objects
 
Is this answer useful? Yes | No
April 13, 2009 16:52:47   #5  
BrianDSy Member Since: April 2009   Contribution: 1    

RE: What is the use of Empty Interface?
It allows the client to define the methods it calls from the container
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape