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
Can we extend private class in java?
Why do we need variables?
Can an unreferenced object be referenced again?
How many bytes is a string in java?
What is the use of accept () method in java?
Which browsers work with java?
What is final method?
What is the difference between post and put?
What are the two types of java programming?
How does map works in java?
Is java call by value?
Why string is immutable or final in java
What is an infinite loop? How infinite loop is declared?
What do you understand by private, protected and public?
How can I right-justify a string?