This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

null interfaces

 
feroz muhamed
Ranch Hand
Posts: 87
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
please help me to answer this question. which is from an interview .Why there are some null interfaces in Java? What
does it mean? Give some null interface in Java?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've never heard the term "null interface" but I'm betting the interviewer meant "empty" or "tagging" interfaces, like java.io.Serializable or java.lang.Cloneable. Both of these interfaces declare no methods; by implementing them, a class signals some fact to the JVM (either it's OK to serialize it, or it's ok to clone it.)
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic