qtr_1_study_guide
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
qtr_1_study_guide [2018/10/08 12:44] – cthiel | qtr_1_study_guide [2018/10/09 09:59] – cthiel | ||
---|---|---|---|
Line 3: | Line 3: | ||
It is a good idea to review your homework, the powerpoint slides (in [[ https:// | It is a good idea to review your homework, the powerpoint slides (in [[ https:// | ||
- | Don't forget that you don't need a computer to practice writing code at [[https:// | + | Don't forget that you don't need a computer to practice writing code at [[https:// |
Things to watch out for: | Things to watch out for: | ||
- | - not initializing a field (private, to encapsulate) | + | - not initializing a field ( fields are private, to encapsulate) |
- accidentally making a local variable instead of initializing a variable | - accidentally making a local variable instead of initializing a variable | ||
- | - make methods public, don't forget to use () for the parameter list, even if there are none | + | - remember to make methods public, |
+ | - local variables are never public nor private | ||
- dangling else statements (p 148) | - dangling else statements (p 148) | ||
+ | - forgetting to have a method return something of the correct type | ||
+ | - not to add a System.out.print were no printing is requested (This can be 1 or 2 point ' | ||
+ | - using local variables that you don't declare ( also a AP scoring penalty) | ||
+ | - changing a value referenced by parameter or destroying data in a parameter (also a scoring penalty) | ||
+ | - return statement on a constructor, | ||
Finally, please remember to get a good night' | Finally, please remember to get a good night' | ||
Good Luck! | Good Luck! |
qtr_1_study_guide.txt · Last modified: 2023/10/09 09:23 by frchris