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

What is internal variable?

0 Answers  


33. try { 34. // some code here 35. } catch (NullPointerException e1) { 36. System.out.print(”a”); 37. } catch (RuntimeException e2) { 38. System.out.print(”b”); 39. } finally { 40. System.out.print(”c”); 41. } What is the result if a NullPointerException occurs on line 34? 1 c 2 a 3 ab 4 ac

5 Answers  


What is the difference between logical data independence and physical data independence?

0 Answers  


Explain when noclassdeffounderror will be raised ?

0 Answers  


Can an exception be rethrown?

4 Answers   Wipro,






What is the importance of hashcode() and equals() methods?

0 Answers  


Are arrays primitive data types?

0 Answers  


Do we need to manually write Copy Constructor?

0 Answers   HCL,


How do you add an arraylist to an array in java?

0 Answers  


how to call one program .class file in another program

7 Answers   TCS,


How do we access static members in java?

0 Answers  


What is an object in java?

0 Answers  


Categories