Skip to main content
CS Teaching Tips

Main navigation

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

Java

Have students create a Burrito class in Java to practice object-oriented programming using an object they are familiar with.

Have students write many small, simple classes in Java to scaffold their learning of the basics of object-oriented programming.

Have students create a game of Tetris in Java to work on object-oriented programming and decomposing complex programs.

Use SRec, a recursion visualization tool, in your introductory Java courses to help students conceptualize the recursive algorithms they write.

Show students examples of unreachable code to help them reason about how conditionals are executed.

Misconception: Students create a new instance variable when they only need a local variable.

Compare loops to climbing a flight of stairs to give students a model for how for loops work in real life.

Misconception: Students think that an interface in Java is the same thing as a user interface.

Be on the lookout for loop syntax that belongs to another language when students are learning multiple languages because they sometimes confuse syntax and create hard to spot bugs.

Create a physical model of Java objects and references in order to demonstrate situations where multiple references point to the same object in a way that’s easier for students to comprehend.

Pagination

  • Previous page ‹‹
  • Page 3
  • Next page ››
Subscribe to Java

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

Privacy Policy