What are null interfaces in JAVA ? and give me some
examples?

Answers were Sorted based on User's Feedback



What are null interfaces in JAVA ? and give me some examples?..

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

What are null interfaces in JAVA ? and give me some examples?..

Answer / devesh dashora

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

What are null interfaces in JAVA ? and give me some examples?..

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

What are null interfaces in JAVA ? and give me some examples?..

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

What are null interfaces in JAVA ? and give me some examples?..

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

Post New Answer

More Core Java Interview Questions

How do you create a sop?

1 Answers  


Diff between Comparator and Comparable?

2 Answers   Aditya Birla,


Which is the best sorting technique in java?

1 Answers  


Can we have return statement in finally clause? What will happen?

1 Answers  


Can we override the static methods?

1 Answers  


What is constant in programming?

1 Answers  


What is a treemap in java?

1 Answers  


When we can access the static data member without creating the object what is the need of the object in java.

5 Answers   Airhub, ssinformatics,


Is it possible to create Userdefined Unchecked Exception also?If Yes, give an example?

2 Answers   ADP,


What are constants?

1 Answers  


What is module with example?

1 Answers  


What is the smallest package in Java API?

5 Answers   iGate,


Categories