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

Use puzzles, problem solving, and tinkering in assignments and activities to build students’ confidence and interest in pursuing Computer Science and to ensure that students understand and develop necessary skills for success.
Ask students to identify useless or unnecessary lines of code to assess their understanding of functions.
Do not have students write code for common algorithms. Instead, incorporate common algorithms into your class in novel course-specific variants

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

Privacy Policy