If there is no implementation of MARKER INTERFACE in java.
Then how compiler come to know about specification.

Answer Posted / vijayakumar chinnasamy

Every marker interface has some specific functionality and
no methods in that interface.

Ex:
Searializable - Persistent purpose
Clonnable - for cloning the object
SingleThreadedModel - only one object can be create.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you use equal in java?

746


How does arrays sort work in java?

812


What is static synchronization?

776


Is there any tag in htm to upload and download files?

841


Is heap stored in ram?

721


How many bytes are a float?

715


How many bits is a double?

760


What is the use of predicate in java 8?

707


what do you mean by classloader?

755


How do you include a string in java?

761


What is starvation?

942


What is anagram word?

762


Why is string builder not thread safe?

846


I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?

920


Is a boolean 1 bit?

842