GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  BAAN Infotech

 Print  |  
Question:  There is no methods in the marker interface,then what is the use of marker interface.And what is the functionality of the interface.Why we need to implement marker interface.



September 09, 2007 03:57:59 #4
 rajeev sangam   Member Since: Visitor    Total Comments: N/A 

RE: There is no methods in the marker interface,then w...
 
Marker interfaces are the degenerate case of contract beacause as we know they define no language-level behaviour- no metods or values. All their contract is in the documentation that describes the expectations you must satisfy if your class implements that interface.

Do not  be fooled into thinking that they are unimportant merely because they have no methods.
     

 

Back To Question