Java Reference Guide
This guide was written by Andrea Tartaro, a former CS15 TA. We encourage you to use it -- you'll find it extremely helpful!
Packages, Classes and Variables
- Defining a Package
- Importing a Package
- Defining an Interface
- Extending an Interface
- Object Class
- Defining a Class
- Extending a Class
- Implementing an Interface
- Base Data Types
- Declaring a Variable
- Instantiation Statement
- Declaring an Array
- Accessing an Array
- Using
super - Using
this - Thread Class
Methods
- Defining a Method
- Defining Methods that Accept Parameters
- Constructors
returnStatement- Overloading a Method
- Calling A Method
- Sending Parameters to a Method
Modifiers
- Visibility Modifiers
publicClasses and Interfaces- Defining
abstractMethods and Classes finalClasses, Methods and VariablesstaticMethods and VariablessynchronizedMethods
Operators
- Assignment Operator
- Arithmetic Operators
- Increment and Decrement Operators
- Boolean Operators
- Logical Operators
- Cast Operator
Flow of Control
ifStatementif-elseStatementif-else-ifStatementswitchStatementforStatementwhileLoopdo-whileLoopbreakStatementcontinueStatement
Exceptions
Miscellaneous
Sources I used to help me write this reference guide:
- Deitel & Deitel, Java How to Program. Prentice-Hall, Inc., 1997.
- James Gosling, Bill Joy, Guy Steel, The Java Language Specification. Addison-Wesley, 1996.
- Various friends. Thanks Dan, Danny, Shoe and Moter!
- Started reference guide by Brian McDonald and David Mendenhall.
