This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes what is the flow of this program? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "what is the flow of this program?" Watch "what is the flow of this program?" New topic
Author

what is the flow of this program?

rk sharma
Ranch Hand

Joined: Jun 25, 2011
Posts: 50



Regards,

RK
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3068
    
  33

Did you try executing it? May be you can use a debugger to find out the flow of the program, or may be add print statements to track the flow.


Mohamed Sanaulla | My Blog
rk sharma
Ranch Hand

Joined: Jun 25, 2011
Posts: 50

the output of this program is:
A
B
A
but how ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41125
    
  45
Here's a little hint: Replace

public class A {

by

public class A implements Serializable {

and see what happens. Can you conclude anything from that?


Ping & DNS - my free Android networking tools app
rk sharma
Ranch Hand

Joined: Jun 25, 2011
Posts: 50

yes.we can get output if we do that. but i want to know flow for this
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is the flow of this program?
 
Similar Threads
Serialization
serialization
Serialization Doubt
doubt in reading object file
Serialization and deserialization