what is th output of following program?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   kam_bhat
Posted On:   Friday, January 6, 2006 02:39 PM

class car implements Serializable
{
}
class ford extends car
{
}
If u attempt to serialize an instance of ford then how many objects are serialized?and which r they?

Re: what is th output of following program?

Posted By:   ankush_purwar  
Posted On:   Friday, January 6, 2006 07:13 PM

JGuru offers us a platform where we altogether discuss a set of technical problems which we are facing in our fields and try to solve them.

But it seems that you are testing the peoples who belongs to this forum.

Because you can simply run the program and see the output.

Anyway, the answer of your question
If you attempt to serialize the object of ford class.
Then ford object will be serialize as well as the object of car (implicitly related to ford ) will be also serialized.
About | Sitemap | Contact