Java (Fach) / SCJP (Lektion)
In dieser Lektion befinden sich 7 Karteikarten
Sun Certified Programmer for Java 6 (Study Guide, EN)
Diese Lektion wurde von reichart erstellt.
- Class A template that descripes the kind of state and behavior that objects of this type support
- Object Instance of a class that is created when the JVM encounters the keyword new at runtime. The Object will have its own state and access to all behaviors that are defined in the class.
- State Own unique instance variables of an object that are defined in the class.
- Behavior Methods that contain the class' logic, e.g. algorithms that manipulate the data
- Identifiers and keywords Identifier = name of an object, variable, method, etc. Naming conventions including keywords that must not be used as identifiers.
- Legal identifiers The rules the compiler uses to determine wether a name is legal. Ident. start with a letter, currency character, or a connecting character (no numbers!) After the first any letter, currency character, connecting character or number can be used no limit to the number of letters for a name no Java keywords ident. are case-sensitive
- Suns Java Conventions Suns recommendations for naming classes, variables and methods. Classes and interfaces (First letter (of inner word) capitalized), e.g. PrintWriter Methods (first letter lowercase, that normal camelCase) Variables (first letter lowercase, that normal camelCase) Constants (final and static, name completly uppercase letters)