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


Please Help Members By Posting Answers For Below Questions

What do negative exponents mean?

540


What is replaceall in java?

539


Why javac is not recognized?

514


What is polymorphism and what are the types of it?

493


What does serializing data mean?

511






What is anagram number?

450


What are keywords in programming?

556


How strings are created in java?

553


Does java support multiple inheritance or not?

593


What is externalizable?

609


What is parse method?

527


Why string objects are immutable in java?

562


Why do we use variables?

505


What is included in core java?

573


Is empty string in java?

533