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

In how many ways we can do synchronization in java?

516


Which number is denoted by leading 0x or 0x in java?

551


What is method overloading and method overriding?

529


Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?

595


What are the rules for naming an array?

518






Tell us something about different types of casting?

511


What is array sorting in java?

543


What loop means?

553


What happens to the Exception object after handling an exception?

1805


What is final access modifier in java?

584


What's the purpose of using break in each case of switch statement?

501


What is string example?

589


What is java and why do we need it? Explain

575


What is the difference between size and length in java?

502


Is null a keyword in java?

549