a Connections and Resultsets are very valuable and limited resources that help to connect to another system (RDBMS). you could probably write some logic to serialize the Objects, but the underlying resuources that these Objects depend on for connecting and reading data from a database will not be serialized..and will be reused when another process calls for their services.
just imagine a the management of files through java.io package, here the file is the RDBMS.
I would be interested to know why you would want to Serialize a Connection and the Resultset Object...well it is a difference question if you want to serialize a connection related info or the Data that a Resultset represents.
Joined: Sep 13, 2004
Thanks for your guidence ,actually i was studying about transient variables.
in Java2 the serializability concept was introduced and then they changed most of there classes to implement Serializable interface.
but left classes like Graphics in java.awt and ResultSet,Connection in java.sql