marker interface is use just for identity n nothing else.. like u use ur college id card just for identity. | 0 |
By: [email protected] On: Mon Jan 28 12:59:01 IST 2013 0 392 0 | 392 |
Are You Satisfied :2Yes4No |
Marker interface is used as a tag to inform a message to the java compiler so that it can add special behaviour to the class implementing it. Java marker interface has no members in it. Lets take the java.io.Serializable marker interface. It doesnot has any members defined it it. When a java class is to be serialized, you should intimate the java compiler in some way that there is a possibility of serializing this java class. In this scenario, marker interfaces are used. The java class which may be serialized has to implement the java.io.Serializable marker interface. In such way, we are intimating the java compiler. From java 1.5, the need for marker interface is eliminated by the introduction of the java annotation feature. So, it is wise to use java annotations than the marker interface. It has more feature and advantages than the java marker interface. | 0 |
By: [email protected] On: Mon Jan 28 13:01:49 IST 2013 0 147 0 | 147 |
Are You Satisfied :4Yes2No |
tanks Mr.rishi | 0 |
By: [email protected] On: Mon Jan 28 22:14:20 IST 2013 20 4 0 | 24 |
Are You Satisfied :1Yes1No |
Thanx to javatpoint | 0 |
By: [email protected] On: Sat Apr 27 05:24:44 EDT 2013 0 0 0 | 0 |
Are You Satisfied :0Yes0No |