This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Question regarding serialization ?" Watch "Question regarding serialization ?" New topic
Author

Question regarding serialization ?

Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 845
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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31057
    
232

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: 845
As currently there is no constructor available. But i can make a constructor to test it. Excellent reply.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question regarding serialization ?