If there is no implementation of MARKER INTERFACE in java.
Then how compiler come to know about specification.
Answers were Sorted based on User's Feedback
Answer / kamlesh yadav
Implementing a java Class with the help of Marker Interface
will inform compiler about specification.
Is This Answer Correct ? | 6 Yes | 2 No |
Answer / 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 |
Is there a way to increase the size of an array after its declaration?
What is immutability in java?
Hi buddy, well i got that there is always a default constructor with abstract class. OK. But why not with interface? Thanks in advance.
why the primitive data type have classes?
What is the properties class?
What is the SimpleTimeZone class?
Is passing by reference faster?
I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?
What is comparator in java?
Is set ordered in java?
Differentiate between class and structure.
What are the uses of java?