Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
16 Cards in this Set
- Front
- Back
identifiers must be composed of
|
Unicode* characters, numbers, currency symbols, and connecting characters
|
|
identifiers must start with
|
letter
currency symbol connecting character |
|
t/f: identifiers are case sensitive
|
true
|
|
t/f: there is no limit to the number of characters an identifier can contain
|
true
|
|
After the first character, an identifier may contain
|
letter
currency symbol connecting character numbers |
|
all keywords
|
abstract
assert boolean break byte case catch char class const continue default do double else enum extends false final finally float for goto if implements import instanceof int interface long native new null package private protected public return short static strictfp super switch synchronized this throw throws transient true try void volatile while |
|
keywords of mystery
|
break
continue default enum goto instanceof native short strictfp transient volatile |
|
JavaBean prefix for getters: if not a boolean?
|
get (e.g. getSize*)
* a variable does not need to be named "size" - the name is up to the programmer |
|
JavaBean prefix for getters: if a boolean?
|
get
is |
|
JavaBean prefix for setters
|
set
|
|
To complete the name of a getter or setter:
|
- change the first letter of the property name to uppercase
- append to valid prefix |
|
Setter method signatures:
|
- public void
- argument that represents the property's type |
|
Getter method signature
|
-public
-no arguments -return type that matches the argument type of the setter method for same property |
|
JavaBean Listener method names used to register a listener with an event source must use what prefix? Prefix is followed by what?
|
-add
-listener type ex: addActionListener |
|
JavaBean Listener method names used to unregister a listener must use what prefix? Prefix is followed by what?
|
-remove
-listener type ex: removeActionListener |
|
JavaBean: The type of the listener to be added or removed must be:
|
passed as the argument to the method
|