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

Know and point out to students the limits of Khan Academy’s JavaScript environment, which does not allow some important topics (like variable scoping) to be demonstrated.
Help students develop a more thorough understanding of CS topics by designing and building games.
Use a number-guessing game that pushes students to use binary search in a fun and interactive activity that allows you to introduce binary sort in a grounded manner.
  • 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