| Author |
Question regarding serialization ?
|
Amandeep Singh
Ranch Hand
Joined: Jul 17, 2008
Posts: 839
|
|
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.
|
SCJP 1.4, SCWCD 5, SCBCD 5, OCPJWSD 5,SCEA-1, Started Assignment Part 2
My blog- http://rkydesigns.blogspot.com
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26496
|
|
|
How about adding a System.out.println() to the constructor to test it?
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
Amandeep Singh
Ranch Hand
Joined: Jul 17, 2008
Posts: 839
|
|
|
As currently there is no constructor available. But i can make a constructor to test it. Excellent reply.
|
 |
 |
|
|
subject: Question regarding serialization ?
|
|
|