Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Name the null interfacess in java?what are they?

 
senthil sen
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Name the null interfacess in java?what are they?
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi senthil,
here r which i remember,
1. java.io.Serializable
2. java.lang.Cloneable
3. java.rmi.Remote
others, please add to this...
regards
maulin
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi senthil,
null interfaces are like placeholders you can say. they are just used to specify or constrain certain properties of the objects.
e.g. if we implement Serializable then it means that the object is serializable. if we impelement Cloneable then it means the object can be cloned.
these interfaces are referred as null as they don't have any method in them so we don't need to implement any method upon implementing them.
regards
maulin
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic