What is the significance of null interface in Java?

Showing Answers 1 - 5 of 5 Answers

Mahesh

  • Mar 20th, 2006
 

 we say this as an mark up interface we use this interface because it shouid be recognized by Java Virtual Machine in order to make the objects selected for network enable and serialized and select particular objects to be participated in Client/server Communication

  Was this answer useful?  Yes

ak40732

  • Mar 21st, 2006
 

The null interface is also called as Marker Interface.

EX:In J2EE applications,if u want to make any servlet as thread safe,then we

make as such,through the SingleThreadMarkerInterface.

For this ur servlet just need to implement this interface.

It indicates to the runtime that ur marking ur servlet as thread safe.i.e ur servlet can process only one request at a time.

  Was this answer useful?  Yes

srinivas.bora

  • Mar 21st, 2006
 

hi,

A null interface is also known as marker interface or tagged interface.

In this interfaces there is no method body also. these interfaces provide some

information about java objects.Ex SingleThreadModel it provide information about our servlet as Thread safe.

okey baye.....

If there is any questions on j2se and j2ee plz send to my mail id

bora_srinivasarao@yahoo.co.in

keeps smiling and mailing

bora_srinivasarao@yahoo.co.in

  Was this answer useful?  Yes

venu

  • Mar 27th, 2006
 

we have runnable interface that is also a marker interface but it is haveing run method.what about that

  Was this answer useful?  Yes

K.V.N.R.MURALI KRISHNA

  • Mar 29th, 2006
 

If you decare a null/tagged/marked interface then its give some information about jvm that information is its going to be serializable.and this interface doesn't have any methods.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions