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

Write a java program to generate fibonacci series ?

574


Can an unreferenced object be referenced again?

762


What are the new features in java 8? Explain

559


Why does my function print none?

521


Why collection doesn’t extend cloneable and serializable interfaces?

643






Why java is said to be pass-by-value ?

549


How does linkedhashmap work in java?

519


Write a factorial program using recursion in java?

518


Is 0 an even number?

550


What is a class reference?

554


Are generics important java?

524


Can an anonymous class be declared as implementing an interface and extending a class in java programming?

646


If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?

710


What are the advantages and disadvantages of object cloning?

572


What are the important features of Java 10 release?

511