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
Give the difference between the println method and sqrt method?
What do you mean by pointer value and address?
Is double bigger than float?
What is difference between java and java ee?
What is integers and example?
why are there separate wait and sleep methods? : Java thread
Is null an object in java?
What is use of arraylist in java?
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?
Is string an object?
What is the difference between serializable and externalizable interface?
Which non-unicode letter characters may be used as the first character of an identifier?
Can memory leak in java?
Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.