by Michael Thomas
package definition - groups classes together that need access to shared members
variables or methods.
import statement(s) - to use a class in another package, import the class via the
classes package.
public class MyClass [extends Superclass] [implements Interface(s)]
{
class variables - static variables. Exists only once. (belong to class) |
}
Other classes that are not public. (only one public class is allowed per .java
file.)
interface MyInterFace //Is abstract even if you do not define as so.
{
public int intSerialNum = 987654; //Is static & final even if you do not
define as so. |
}