Misconception: Students don’t realize that the keyword return causes Java to leave the current method.
Misconceptions: Students have difficulty with loops partially because the motivation for looping a small number of times seems insufficient.
Distinguish the differences between print statements and return statements to help students understand that these elements are not related because this conflation can cause a lot of confusion.
Misconception: Return is a mystery to students because they may not understand that functions have an entry point and an exit point. This results in mistakes such as assuming Python will return the right thing.
Misconception: Students struggle with the jump from writing code in one method to writing code in two methods.
Explain that Strings in Java are a weird-hybrid between a primitive and an Object and as a result they can’t be modified.
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.