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
Can a class be final?
What is mnemonic in assembly language?
What is an iterator java?
What is array list in java?
What is method in research paper?
What is the association?
does java support pointers?
What is lambda expression in java?
What is a method signature java?
What are different access specifiers in java? Explain
How can we create an immutable class in java?
What is java virtual machine and how it is considered in context of java’s platform independent feature?
Why there is no call by reference in java?
Why do we use bufferedreader?
What is string made of?