What is the USE of Null interfaces ??...if thers nothing
inside these interfaces how are they used and WHy are they
used ???? No 1 has given a proper description yet

Answer Posted / v.raju

The Null interfaces are called as Marker interfaces or
tagged interfaces they doesnt contain any code , they will
just declared to give some information about the class,

For example Serializable is a marker interface , it states
that the class can be serializable


cheers,
varahala raju

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain a few methods of overloading best practices in java?

521


Does list allow duplicates in java?

528


I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?

582


What is difference between Heap and Stack Memory?

547


Why can't we make a class private in java?

541






Explain the importance of throws keyword in java?

580


What is difference between final and finally in java?

596


What are strings in physics?

552


Is integer immutable in java?

554


What is the difference between public, private, protected, and friend access?

583


What is the benefit of lambda expressions?

499


Why javac is not recognized?

531


How objects are stored in java?

554


State differences between C and Java?

669


Is it possible for yielded thread to get chance for its execution again ?

555