• Post Reply Bookmark Topic Watch Topic
  • New Topic

marker interface  RSS feed

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can someone help me what is the actual purpose of marker interface like

eg: Remote

if they dont have any methods, then what is the reason these interfaces are made compulsary.

eg: if Remote interface is not implemented in RMI programs, then it is throwing errors.. and also Naming.lookup("string") is returning the object of type Remote. why is that the API is designed such a way?? why cant it be some user defined interface??? as far as i have heard it is used in design patterning.. but i am not able to understand what it is actually trying to say ... pls help me out..
 
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at the Intermediate FAQ

It's just to say "Hi, I'm a Remote class, I'm so cool, I can be used with RMI"
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!