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
In how many ways we can do synchronization in java?
Which number is denoted by leading 0x or 0x in java?
What is method overloading and method overriding?
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?
What are the rules for naming an array?
Tell us something about different types of casting?
What is array sorting in java?
What loop means?
What happens to the Exception object after handling an exception?
What is final access modifier in java?
What's the purpose of using break in each case of switch statement?
What is string example?
What is java and why do we need it? Explain
What is the difference between size and length in java?
Is null a keyword in java?