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 jdk, jre, and jvm?
What is the advantage of preparedstatement over statement?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
What is a list in java?
What are the 3 types of control structures?
How many types of methods are there in java?
how to create constants in java?
What is file in java?
How do you replace all in word?
Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?
You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain
Is a class subclass of itself?
What are annotations in java?
What is the purpose of stub and skeleton?
What is the difference between multiple processes and multiple threads?