adspace
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
Realized?
Write a program to print count of empty strings in java 8?
Write a program to find the whether a number is an Armstrong number or not?
How to sort array in descending order in java?
Differentiate between static and non-static methods in java.
What is the difference between equals() and == in java?
What is an object in java and how is it created?
How to create a base64 decoder in java8?
What is a classloader in java?
What is java string pool?
What are the differences between heap and stack memory in java?
What do you mean by an interface in java?
Explain public static void main(string args[]) in java.
Is minecraft 1.15 out?
explain different ways of using thread? : Java thread