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.

Share Misconception: Students don’t realize that the keyword return causes Java to leave the current method. with FacebookShare Misconception: Students don’t realize that the keyword return causes Java to leave the current method. with Twitter
  • 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

Misconception: Students believe that while loops tell the program when to stop rather than when to continue.
Explain that Strings in Java are a weird-hybrid between a primitive and an Object and as a result they can’t be modified.
Have students use a spiral notebook to keep track of important information to enhance their understanding of topics by writing down the material.

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

Privacy Policy