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

What about main() method in java ?

792


What is a class variable?

826


What is difference between module and function?

801


What is meant by collection in java?

831


What is bubble sort in java?

883


Is oracle java 11 free?

733


Can we write any code after throw statement?

848


What is the difference between hashmap and hashtable in java?

810


What is downcasting?

819


What is int argc char * argv?

817


Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)

1107


What is starvation?

963


What is the purpose of the System class?

799


What does system out println () do?

811


What happens when a thrown exception is not handled?

826