What are null interfaces in JAVA ? and give me some
examples?
Answer Posted / shailesh
Null interfaces are just the normal interfaces. But with
these, our classes will be having some additional
functionality. Like, clone() method is not defined in
Cloneable interface but we can make it available for our
class by letting it use cloneable(allowing my class to
clone the objects or just giving permission to do so).
So, these just be treated as a marker interfaces that marks
our class with additional functionality.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is bufferedreader in java?
Explain about member inner classes?
What is independent and dependent variables in research?
When is the finalize() called? What is the purpose of finalization?
Outline the major features of java.
Explain different ways of creating a thread?
How can we find the actual size of an object on the heap?
Can this keyword be used to refer static members?
What is an 8 bit word?
What is difference between null and void?
Can memory leak happen java?
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
What is a default constraint?
Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?
How do you remove duplicates from an array in java?