This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes About serialization objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "About serialization objects" Watch "About serialization objects" New topic

About serialization objects

Ailsa Cape
Ranch Hand

Joined: Aug 10, 2005
Posts: 92
Hi, everyone

Firstly, I test the alone mode. It directly uses the Contractor class which doesn’t implement Serializable interface and works fine. The user can book a record.
But in the server mode, the Contractor class must have the following signature, or the JTable doesn’t obtain any data at all.

If I also use this class in the alone mode, can I break the requirements that The program must be able to work in a non-networked mode. In this mode, the database and GUI must run in the same VM and must perform no networking, must not use loopback networking, and must not involve the serialization of any objects when communicating between the GUI and database elements.

Or Serializable is just a marker interface, so it only indicates that the class which implements it can be serialized, rather than it actually is.

In other words, as long as I don’t use loopback networking, I can freely use the class Contractor which has implemented Serializable interface in the alone mode. right?

Thanks in advance!
Regards,Ailsa Cape
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11778

Hi Ailsa,

You are correct - Serializable is just a marker interface. As long as you do not actively serialize your class you should be fine.

Regards, Andrew

The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Ailsa Cape
Ranch Hand

Joined: Aug 10, 2005
Posts: 92
Hi, Andrew

Thank you again for confirming my idea!

Best Regards, Ailsa Cape
Aruneesh Salhotra
Ranch Hand

Joined: May 12, 2004
Posts: 167
What is the way to perform the application in both networked mode and non-networked mode.
Basically the assignments says that it should work in same VM and also across the network. I plan to use RMI as it takes away most of the implementation issues.
I agree. Here's the link:
subject: About serialization objects
It's not a secret anymore!