Marker interface means , interface which has no methods.Then
what is the necessity of its usage.I read "it tells the
compiler that it should be treated differently ". "It is
used to store state of an object". But still am not
clear.Please explain clearly.

Answer Posted / ras

To store the state of object

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of garbage collection in java?

658


What does += mean coding?

517


What is the difference between throw and throws keywords?

580


What are the types of sockets in java?

546


What is computer compiler?

539






How do you define a method?

515


What technique is carried out to find out if a particular string is empty?

578


What is the difference between actual and formal parameters?

520


What is extension method in java?

565


how to create constants in java?

612


Is the empty set a singleton?

544


What is static keyword?

594


Which package is always imported by default?

553


What is an immutable class?

623


Difference between start() and run() method of thread class?

594