Rate Tips

Misconception: students struggle with scope and may not understand when a variable needs to be used outside of a single method.

  • Students will want to use a local variable inside and outside a method, which can result in multiple variables with the same name.
    • Null pointer exceptions can be a result of mistakenly having multiple variables with the same name.
  • Avoid this problem by having a rule against repeating names in intro classes.
External Source: 

Interview with Dani McAvoy

Other Tips By: