Why null interfaces are used in Java?

Answers were Sorted based on User's Feedback



Why null interfaces are used in Java?..

Answer / guest

Null interfaces can also be called as Tag interface
eg: Serializable,RandomAccess

Is This Answer Correct ?    1 Yes 1 No

Why null interfaces are used in Java?..

Answer / sub

To protect a class derived by other classes

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Core Java Interview Questions

Howmany classes that package java.applet.* contains?

1 Answers   TCS,


Write POJO class as a key to hashmap???

2 Answers  


Why should we create an object? what is a need of it? Apart from access members of a class i want what is a need of object what does it contain?? In normal class to access any member of thaht class we create object where as for static class we access its members using class name. what is a difference between them... thanks in advance.

1 Answers  


what is a package?

11 Answers  


In which way does a Primitive data type is passed ?

5 Answers   Sun Microsystems,


how can we import the user defined package without classpath?

1 Answers   CSC, Infosys,


Define inheritance with reference to java.

0 Answers  


What does 3 dots mean in java?

0 Answers  


What is the size of arraylist in java?

0 Answers  


Is there any case when finally will not be executed?

0 Answers  


What are strings in physics?

0 Answers  


Can we return null in java?

0 Answers  


Categories