what is marker interface ? what is the necessity of it?
Answer Posted / ganesh reddy
markble interface does not contains any methods,but
implementing of these interfaces will be recognise by Jvm
then it will decide that "this class is going do
something".for example for cloneable interface implements
by some class x which consists of a,b variable ,But I need
to interchange instance variables a to b and b to a (pass
by value)of class x and i want again the same values for a
and b.At this situations we can implement cloneable
interface.Like this markble interface are very useful as my
knowledge........
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is an escape character in java?
What is meant by method overriding?
What is sortedset in java?
What is purpose of keyword void?
How to implement an arraylist in java?
What is the difference between access specifiers and access modifiers in java?
Explain about wait() method?
explain local datetime api in java8?
What is args length in java?
Is integer a class?
What is byte data type?
How do you use find and replace?
What is unicode with example?
How does varargs work in java?
In how many ways we can create threads in java?