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
What do you mean by object?
How would you dynamically allocate memory to an array?
List the three steps for creating an object for a class?
What is complexity and its types?
How will you serialize a singleton class without violating singleton pattern?
Can you call one constructor from another if a class has multiple constructors?
Should you use singleton pattern?
What data structures are used to perform recursion?
Is string passed by reference in java?
What method is used to specify a container's layout in java programming?
How do you sort in ascending order in java?
What is double checked locking in singleton?
what is mutual exclusion? : Java thread
How do you access command-line arguments within the code?
Define linked list and its features with signature?