aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes loop in construcor 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 » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "loop in construcor " Watch "loop in construcor " New topic
Author

loop in construcor

John Lincoln
Ranch Hand

Joined: Feb 11, 2003
Posts: 192
Hi,

I found the following in mock exam. I thought it would print 0, 1. It compiles fine but no output. What feature of language is being tested here ? Please help


Thanks
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
Well in the loop they are showing you how to use continue with a labeled loop. However, because you never create an instance of Selby, nothing happens.
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1



Try that and see what happens.

-Cameron McKenzie
Pinkal Patel
Ranch Hand

Joined: Jun 16, 2006
Posts: 57
What feature of language is being tested here ? Please help


Want to test calling of Constructor


Pinkal Patel<br />SCJP 1.5<br />Preparing for SCWCD
John Lincoln
Ranch Hand

Joined: Feb 11, 2003
Posts: 192
Thanks all. I missed the minor but important detail.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: loop in construcor