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 the importance of static variable?
What is data object example?
What is a data structure java?
Explain java coding standards for constants?
What is high level language in computer?
What is the purpose of static methods and variables?
Why is java architectural neutral?
What is the impact of declaring a method as final?
What are the topics in advance java?
What is the use of list in java?
What are the high-level thread states in java programming?
Is array a class in java?
What are basic keywords?
Why do we need array in java?
Can we convert integer to string in java?