Skip to main content
CS Teaching Tips

Main navigation

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

Misconception: Students confuse static and final variables in Java.

Share Misconception: Students confuse static and final variables in Java. with FacebookShare Misconception: Students confuse static and final variables in Java. with Twitter
  • The word "static" in English implies that the value of the variable won’t change—however, static variables can be changed, unlike final variables.
    • Show students that you can change static variables to them with this unintuitive this concept.
    • It’s likely that you’ll need to repeat this often for students to fully remember.

More about this tip

Tags

  • Java
  • CS 1
  • Intro Programming
  • Content Misconceptions
  • Programming Concepts
External Source
Interview with Cyndi Rader.
Other Tips By
Other Tips By Cyndi Rader

Similar tips

Have students create a program in Python that draws a map of the stars in order to gain practice using dictionaries to manipulate real data.
Misconception: With conditionals, students may try to compare the memory address of a function to a number, like x < foo, when they intended to compare x with the return value of foo.
Tell young students that computer programming is simply writing rules for a computer to follow, similar to bossing around a younger sibling, to help them connect programming to everyday life.

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

Privacy Policy