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 string pool in java?
What is the disadvantage of synchronization?
What is difference between static class and singleton pattern?
How do you declare an array in java?
What is ternary operator?
What is casting in java programming?
Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?
Write a program to print the pattern given below
What are the main uses of the super keyword?
What is a stack class in java ?
Why we use protected in java?
What is the difference between abstraction and encapsulation?
What is integer size in java?
What is the Difference between Final Class && Abstract Class?
What is singleton class in ruby?