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

Explain how inheritance allows the Java toString method to work when teaching printing to help students develop an understanding for how everything in Java is an object that has hierarchical relationships with other objects.
Ask students to consider which objects in the room are computers to further their understanding of what computing is. Use the phrasing "What different Computers do you see".
Misconception: Students may think that assigning one array to point to another array makes a copy of that array, failing to make a distinction between shallow and deep copies.

For more information or to report a bug, contact us at admin@csteachingtips.org. Built with Bootstrap. Powered by Drupal.

Privacy Policy