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
Which package is imported by default?
What is bifunction in java?
What is a copy constructor in java?
What is the need of transient variables in Java ?
What is a generic data type?
What is the difference between && and & in java?
What are the escape sequences in java?
give an example for encapsulation?
How can we create a synchronized collection from given collection?
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
How will you compute size of a structure?
When is the garbage collection used in Java?
What is factor r?
What is a return in java?
Can string be considered as a keyword?