Skip to main content
CS Teaching Tips

Main navigation

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

Give commands to an imaginary person sitting in an empty desk to model what happens when you give commands to an object that hasn’t been instantiated to help students understand null pointer exceptions.

Share Give commands to an imaginary person sitting in an empty desk to model what happens when you give commands to an object that hasn’t been instantiated to help students understand null pointer exceptions. with FacebookShare Give commands to an imaginary person sitting in an empty desk to model what happens when you give commands to an object that hasn’t been instantiated to help students understand null pointer exceptions. with Twitter
  • This activity helps students realize one of the common situations where a null pointer exception might incur.

More about this tip

Tags

  • Development Methods
  • Meaningful and Relevant Content
External Source
Interview with Ria Galanos
Other Tips By
Other Tips By Ria Galanos

Similar tips

Use current CS events in class to engage students on social and ethical issues.
Have students write pseudocode as a pre-lab exercise so they are prepared to write code when lab begins.
Students have trouble seeing the connection between models (UMLs, etc.) and code so they only want to focus on coding, a problem when teaching modeling.
  • 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