Forums Register Login

Question from Dan's mock Exam

+Pie Number of slices to send: Send

Output is 2613587. I understood upto the outout 26135. My question is when control comes to l1, Is the control goes to l2 and come back to l1? cuz of that its going to print 87?
[Edited by Val to break some lines]
[ September 11, 2002: Message edited by: Valentin Crettaz ]
+Pie Number of slices to send: Send
Yes
+Pie Number of slices to send: Send
Just wanna add to it.
The reason that it calls l2 is because the constructor, N() makes a call to this("@") which will call the constructor, N(String s).
I am not a spy. Definitely. Definitely not a spy. Not me. No way. But this tiny ad ...
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 548 times.
Similar Threads
Generics
Wrapper class
Boxing Statement in K&B Book
For loop
Constructor
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 03:01:47.