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 difference between yielding and sleeping? : Java thread
Which package is imported by default?
What is predicate in java?
What are java annotations?
why using interface interface ?
Can we have two main methods in a java class?
Explain the reason behind ending a program with a system.exit(0)?
What is the applet security manager, and what does it provide?
What is floor math?
What happens to the Exception object after handling an exception?
What is thread pool? How can we create thread pool in java?
What is an off by one error in java?
What is command line argument
Can this keyword be used to refer static members?
What are invisible components?.