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 are the advantages and disadvantages of reference counting in garbage collection?
What is variable declaration and definition?
What is native code?
What is adapter in java?
what is the major difference between linkedlist and arraylist in java?
How do you download stubs from Remote place?
What is java virtual machine? Explain
How do you break a loop?
What is floating data type?
Can classes declared using the abstract keyword cab be instantiated?
What is meant by string is immutable?
What is complexity in java?
Can we create object of inner class in java?
What is a boolean in java?
What does exp mean in math?