• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

break and continue in the SCJA exam?

 
Alexander Bunkenburg
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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!
 
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
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 ]
 
Kaydell Leavitt
Ranch Hand
Posts: 690
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • 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
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic