File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Question regarding serialization ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Question regarding serialization ?" Watch "Question regarding serialization ?" New topic

Question regarding serialization ?

Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 850
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-
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33130

How about adding a System.out.println() to the constructor to test it?

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 850
As currently there is no constructor available. But i can make a constructor to test it. Excellent reply.
I agree. Here's the link:
subject: Question regarding serialization ?
It's not a secret anymore!