Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Interview question  RSS feed

 
kapil bhate
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in interview he asked me that You are using rmi for accessing remote object ok but if i used two classes on diff. machine in lan and if i can access the another java file's method by creating object so what is diff.between rmi and java ?i amm biginner to rmi so please help me!!!
 
vikasids sharma
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kapil..
I dont believe two classes/objects residing in two different boundaries
can interact without bringing RMI into the picture.

Originally posted by kapil bhate:
if i used two classes on diff. machine in lan and if i can access the another java file's method by creating object so what is diff.between rmi and java ?i amm biginner to rmi so please help me!!!
 
Prakash Dwivedi
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont believe two classes/objects residing in two different boundaries
can interact without bringing RMI into the picture

How can you forget simple socket programming???
It has nothing to do with RMI, and works fine on LAN
[ March 12, 2004: Message edited by: Prakash Dwivedi ]
 
vikasids sharma
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes Dwivedi ..you are rite.
So the difference is RMI encapsulates all low level networking issues .
Using RMI developer needs to play only with objects rather than pure Socket Connections.More precisely stubs and skeletons generated in RMI are responsible for creating sockets transparent to developer.
Originally posted by Prakash Dwivedi:
I dont believe two classes/objects residing in two different boundaries
can interact without bringing RMI into the picture

How can you forget simple socket programming???
It has nothing to do with RMI, and works fine on LAN
[ March 12, 2004: Message edited by: Prakash Dwivedi ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!