• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

break and continue in the SCJA exam?

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello people

Thanks for your previous answers. Especially Cameron: Of course I know your web site, thanks!

Does the exam mention break and continue in loops?

I would very much like not to teach them because I think they are superfluous and confusing. If I teach them, people may start using them in our project, and I would like to avoid that.

Thanks!
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your commitment to object oriented programming is noble. Yes, too many break, continues and labels can be somewhat non-object oriented.

I can tell you that being able to recognize flow control is an important part of the SCJA exam. While I would never divulge what I encountered on the SCJA exam, other less ethical people have told me that indeed there was the occasional use of the keyword break and the keyword continue. One or two questions might reference these keywords, and that's a good 4 or 5 % of the final mark.

I don't know of anyone that encontered break labels or continue labels, which is a good thing, because those still confuse me.

Cheers!

Kameron McKenzie
[ November 03, 2006: Message edited by: Kameron McKenzie ]
 
Ranch Hand
Posts: 694
Mac OS X Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I like to use break and continue commands, except labelled-break and labelled-continue are confusing to me.

-- Kaydell
 
Cameron Wallace McKenzie
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think labelled breaks are way out of the scope of the SCJA exam. Total scjp territory, and even then, maybe only one or two SCJP questions.

Cheers!

-Cameron
 
If you try to please everybody, your progress is limited by the noisiest fool. And this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic