aspose file tools*
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 Spring in Action this week in the Spring 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: 3071
    
  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: 42276
    
  64
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?