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

Create a physical model of Java objects and references in order to demonstrate situations where multiple references point to the same object in a way that’s easier for students to comprehend.
When learning in a playful context, students are less likely to be frustrated by difficulty or failure.
Walk students through the flow of information once you hit submit on a website to build fluency with web development.
  • 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