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

In anticipation of a relatively large project, assign smaller projects that include the programming concepts necessary for the large project.
Put debugging tips inside the test cases when you provide students with JUnit test cases to help students improve their own debugging abilities in Java.
Misconception: Students have difficulty using the correct data types in Java because their go-to data type is int most of the time.

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

Privacy Policy