Skip to main content
CS Teaching Tips

Main navigation

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

Misconception: students think that when you assign a = b, there is no longer anything assigned to b because b empties its contents into a.

Share Misconception: students think that when you assign a = b, there is no longer anything assigned to b because b empties its contents into a. with FacebookShare Misconception: students think that when you assign a = b, there is no longer anything assigned to b because b empties its contents into a. with Twitter
  • When you ask a novice student "what happens to b when you assign a = b?", they may think that b no longer contains content as a result of giving it’s content to a.
  • To learn more, watch Mark Guzdial's CS Education Zoo interview.

More about this tip

Tags

  • Content Misconceptions
  • CS 1
  • Intro Programming
  • Programming Concepts
External Source

CS Education Zoo Interview with Mark Guzdial.

Other Tips By
Other Tips By Mark Guzdial

Similar tips

Always use the keyword ‘this’ in Java, and trace through many examples, to help students understand it.
Misconception: students struggle with the onMousePress method (and other mouse interaction methods) in the Java objectdraw Library from Williams College; they need help understanding it’s called even when don’t explicitly call it.
Explain inheritance using an “is-a” relationship and composition using a “has-a” relationship.
  • 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