• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question from Dan's mock Exam

 
suresh kamsa
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 ]
 
Barkat Mardhani
Ranch Hand
Posts: 787
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes
 
May Pat
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic