top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

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

+4 votes
118 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 Google+ Share Button LinkedIn Share Button Multiple Social 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...