• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

loop in construcor

 
John Lincoln
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Try that and see what happens.

-Cameron McKenzie
 
Pinkal Patel
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What feature of language is being tested here ? Please help


Want to test calling of Constructor
 
John Lincoln
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks all. I missed the minor but important detail.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic