Skip to main content
CS Teaching Tips

Main navigation

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

Misconception: Students create a new object when they only need to copy a reference.

Share Misconception: Students create a new object when they only need to copy a reference. with FacebookShare Misconception: Students create a new object when they only need to copy a reference. with Twitter
  • The opposite case is also common: students may copy a reference when they need to create a new object.

More about this tip

Tags

  • Content Misconceptions
  • CS 1
  • Intro Programming
External Source

"Exploring programming misconceptions: an analysis of student mistakes in visual program simulation exercises" by Teemu Sirkiä and Juha Sorva.

Other Tips By
Other Tips By Teemu Sirkiä
Teemu Sirkiä

Similar tips

Misconception: Students may have trouble identifying errors in their code that cause elements to disappear from the page.
Help students find bugs by drawing or writing out what their code does at each step.
Remind students that variable assignment occurs in the order assignments are given. This avoids the misconception that changing one value affects other variables assigned before it.
  • 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