What are null interfaces? Give some examples?

Answers were Sorted based on User's Feedback



What are null interfaces? Give some examples?..

Answer / debapriya patra

Null interfaces in java means "marker interfaces".Interface
which does not contain any variables and methods are called
marker interfaces.

Example:

serialize,cloneable etc...

Is This Answer Correct ?    7 Yes 0 No

What are null interfaces? Give some examples?..

Answer / ravikiran

Null interface are the interfaces with out methods.Known as
marker interfaces.
serializable
externalizable
cloneable

Is This Answer Correct ?    7 Yes 2 No

Post New Answer

More Core Java Interview Questions

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?

5 Answers   Ness Technologies,


What is difference in between java class and bean?

0 Answers  


In Java why we write public static void main(String args[]) why not main()?

46 Answers   Aptech, GE Healthcare, Infosys, Microsoft, New Horizon, Practical Viva Questions, TCS, Wipro,


What if constructor is protected in java?

0 Answers  


What are the OOAD concepts in java explain with examples?

4 Answers   Aricent, CTS,






How do you test a method for an exception using junit?

0 Answers  


What is the difference between throw and throws?

10 Answers   IBM,


what Data encapsulation in java?

5 Answers  


what is meant by multicast?

1 Answers  


What are structs in java?

0 Answers  


what is difference between validation.xml & validation rules.xml?

8 Answers   BirlaSoft,


What is user defined exception?

4 Answers  


Categories