Why there are some null interface in java ? What does it mean ?

Why there are some null interface in java ? What does it mean ?

Interface which does not contain any variables and methods.

 Examples: * java.io.Serializable, * java.lang.Cloneable, etcBoth of these interfaces declare no methods, by implementing them, a class signals some fact to the JVM (either it\'s OK to serialize it, or it\'s ok to clone it.) 

 The null interface is also called as Marker Interface or tagged interface.


By:Jalees
Date:2014-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher