File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Question from Dan Watch "Question from Dan New topic
Author

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
Yes
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: http://aspose.com/file-tools
 
subject: Question from Dan's mock Exam
 
Similar Threads
For loop
Constructor
Wrapper class
Generics
Boxing Statement in K&B Book