Skip to main content
CS Teaching Tips

Main navigation

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

When tracing through code in Java, use different colors for code that is executed in a main method versus in a class method.

  • This helps students solidify their understanding of where code actually gets executed in Java.

More about this tip

Tags

  • Java
  • CS 1
  • Intro Programming
External Source

Interview with Bob Luciano

Other Tips By
Other Tips By Bob Luciano

Similar tips

Remind students that the computer will run any code that compiles, no matter how unreasonable, because it doesn’t have the ability to determine if code is reasonable or not.
Misconception: Students get confused by the multiple equals signs comparison operators in Javascript making it difficult to motivate the difference to beginning students.
Compare exclusive OR gates to a light controlled by switches at the bottom and top of a staircase to explain how XOR logic works in a familiar situation.

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

Privacy Policy