What are null interfaces in JAVA ? and give me some
examples?
Answers were Sorted based on User's Feedback
Answer / therathna
null interfaces in java are taged interfaces or mark
interfaces those are serialization, clonable , SingleThread
| Is This Answer Correct ? | 26 Yes | 3 No |
null interface is such which have no abstract methods
declaration in interface definition. For Ex. Clonable
interface.
| Is This Answer Correct ? | 13 Yes | 1 No |
Answer / abc
NULL Interface are marker interface in JAVA, when any class
implements such marker interface then object of that class are
being handeled differently by JVM
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / kalyan
Null interfaces are act as makers ...they just tell the
complier that the objects treated as a differently by
JVM...Examples of null interfaces is
serializable ,remote,Cloneable
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
Can you give names of Container classes?
How many Java environments are there?
1 Answers Phantom Technologies,
What is the importance in context in JDBC connection pools?
When you say String is immutable, what do you mean by that? Say I have String s = "Ness" s= s+"Technologies"; What will happen? If the value gets appended, then what is the meaning of immutable here?
What is the difference between superclass and subclass?
what is multi-tasking
3 Answers Anand Group, Photon Infotech, Tech Mahindra,
Have you used any version control ? if so explain about it?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?
What does string [] args mean?
What are the traverses in Binary Tree?
Can we catch more than one exception in a single catch block?
where singleton classes are used in j2ee web application.can we use it for connection pooling.