The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Question from Dan's mock Exam Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Question from Dan Watch "Question from Dan New topic

Question from Dan's mock Exam

suresh kamsa
Ranch Hand

Joined: Jul 30, 2001
Posts: 149

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

Joined: Aug 05, 2002
Posts: 787
May Pat
Ranch Hand

Joined: Jul 01, 2002
Posts: 32
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).

May P.
I agree. Here's the link:
subject: Question from Dan's mock Exam
jQuery in Action, 3rd edition