Study your flashcards anywhere!

Download the official Cram app for free >

  • Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key

image

Play button

image

Play button

image

Progress

1/16

Click to flip

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