top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?

+4 votes
456 views
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
posted Sep 9, 2015 by Karthick.c

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes

Null interfaces are markable interfaces and it act as markers.it tells the compiler that the objects of this class need to be treated differently. some examples of null interfaces in java are:
1.Cloneable
2.Runnable
3.Serializable
4.Externalizable.
5.SingleThreadModel,
6.Event listener

answer Feb 26, 2016 by Shivam Kumar Pandey
...