Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • 3D
  • About
  • Rate Tips
  • Tip Sheets

Misconception: Students don’t realize that the keyword return causes Java to leave the current method.

  • Make sure your students know that any code inside their methods placed under the keyword return will not execute!

More about this tip

Tags

  • Java
  • Development Methods
  • Content Misconceptions
External Source

Interview with Serita Nelesen.

Other Tips By
Other Tips By Serita Nelesen

Similar tips

Teach these four Scanner methods that allow students to write interesting code at the beginning of an introductory Java course to give students a feel for programming without overwhelming them.
Teach students how to find built-in Java methods in the Javadocs documentation so they can are prepared to use this skill on the AP CS exam.
Show code where the name of the method’s actual arguments and formal parameters are different so students see first hand that these two items don’t have to match for code to execute and improve their understanding of scope.

For more information or to report a bug, contact us at admin@csteachingtips.org. Built with Bootstrap. Powered by Drupal.

Privacy Policy