Hey buddy.. can you please tell me about the use of marker
interface? And is there any link between marker interface
and factory methods?
Thanks in advance.
Answers were Sorted based on User's Feedback
Answer / namita
Marker Interface or sometimes called as Tagging interface
are empty interface which means it does not have any
methods. The use of the these interface is below
Like clonneable interface which is also a marker interface
when ur code implements clonneable interface the JVM will
come to know that you want to clone the object by calling
clone method(). Similalry serializable interface needs to
be implemented when you want to serialize the objects.
Their implementation is just to make aware the JVM.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / venkat
Marker Inferface doesnt consists any methods
it gives prior intemation to JVM to treat specially
Ex:Serialiazable
singleThread
| Is This Answer Correct ? | 0 Yes | 0 No |
What is finalize()?
Difference between default and protected access specifiers?
Difference between string, stringbuffer and stringbuilder?
Is it possible to specify multiple jndi names when deploying an ejb?
What does it mean that a class or member is final?
What are variable arguments or varargs?
How many bytes is a string in java?
What is primitive array?
Why do we create threads in java?
Do extraneous variables affect validity?
Explain what pure virtual function is?
Hi am an mca graduate . i have done bsc maths in my degree . every company asks me why you make shift from maths group to computere field . What i need to answer?