• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question regarding serialization ?

 
Amandeep Singh
Ranch Hand
Posts: 850
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when a method call is made across network. Method name and its parameters are serialized and send it as a Smart Link request across network. Then does it creates a new instance of class and then call its method.
Because in my case, the method is not static. So i assume, to make call for this method, we need a instance of class.

As calling this method happens behind the scenes. I am unable to make out whether the instance is made or not.

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
378
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about adding a System.out.println() to the constructor to test it?
 
Amandeep Singh
Ranch Hand
Posts: 850
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As currently there is no constructor available. But i can make a constructor to test it. Excellent reply.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic