Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question about creating ang registering a server object in RMI registry  RSS feed

Roger Fed
Ranch Hand
Posts: 82
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've one question in developing RMI application:
After creating the the server interface and the server implementation class , we
create a server object from the server implementation class and register it with an RMI registry:

My question is at the first line
We create an object of ServerInterfaceImpl

and assign the reference of this object to an object of serverInterface type

why don't we assign the reference of the object created to an object of ServerInterfaceImpl type as follow:

Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!