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


Please Help Members By Posting Answers For Below Questions

What is the importance of static variable?

790


What is data object example?

712


What is a data structure java?

736


Explain java coding standards for constants?

771


What is high level language in computer?

749


What is the purpose of static methods and variables?

738


Why is java architectural neutral?

841


What is the impact of declaring a method as final?

745


What are the topics in advance java?

707


What is the use of list in java?

736


What are the high-level thread states in java programming?

824


Is array a class in java?

710


What are basic keywords?

777


Why do we need array in java?

732


Can we convert integer to string in java?

806