User Tools

Site Tools


qtr_1_study_guide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
qtr_1_study_guide [2019/10/04 13:06] frchrisqtr_1_study_guide [2019/10/04 13:09] frchris
Line 13: Line 13:
   - Remember local variables are **never** public nor private   - Remember local variables are **never** public nor private
   - Remember method names should use () for the parameter list, even if there are no parameters   - Remember method names should use () for the parameter list, even if there are no parameters
-  - dangling else statements (p 148) +  - Watch for dangling else statements (p 148) - without brackets, the last ''else'' belongs to the previous ''if''
-  forgetting to have a method return something of the correct type +
   - **Do not** add a ''System.out.print'' when no printing is requested (This can be a 1 or 2 point **Extraneous code that causes side effect** penalty on the AP Exam)   - **Do not** add a ''System.out.print'' when no printing is requested (This can be a 1 or 2 point **Extraneous code that causes side effect** penalty on the AP Exam)
   - **Do not** use local variables before first declaring them ( also a AP scoring penalty).     - **Do not** use local variables before first declaring them ( also a AP scoring penalty).  
Line 21: Line 20:
   - **Never** use ''return'' in a constructor   - **Never** use ''return'' in a constructor
   - **Do not** ''return'' something when writing a ''void'' method ( a method that isn't supposed to return something (This too has a AP scoring penalty)   - **Do not** ''return'' something when writing a ''void'' method ( a method that isn't supposed to return something (This too has a AP scoring penalty)
 +  - Remember to ''return'' something of the same type as a method's header. 
 +  
    
 Finally, please remember to get a good night's rest and a healthy breakfast! Finally, please remember to get a good night's rest and a healthy breakfast!
 Good Luck! Good Luck!
qtr_1_study_guide.txt · Last modified: 2023/10/09 09:23 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki