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

Explain that using objects/classes helps students keep their programs organized to motivate the use of object oriented programming, some students need extra help understanding its importance.
Misconception: When passing arrays in C/C++ students often forget to pass in the size of the array and to use [] (square brackets) to make the variable an array.
Challenge students to estimate the answer to a Fermi problem to model problem decomposition.
  • CSTT Facebook
  • CSTT Twitter

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

Privacy Policy

  • National Science Foundation
  • Sage Fox Group
  • Harvey Mudd College