Shared Flashcard Set

Details

SCJP - Decl & Acces Control
Code Conventions
6
Computer Science
Professional
05/08/2007

Additional Computer Science Flashcards

 


 

Cards

Term
Unknown Java Keywords
Definition
strictfp goto transient const

continue native volatile
Term
Java Bean Property Naming Rule #1

If a property is not a boolean
Definition
...then the getter method's prefix must be "get".

Ex: getSize() is a valid JavaBeans getter name for a property named "size".
...then the getter method's prefix must be "get"or "is"
Term
Java Bean Property Naming Rule #2

If a property is an a boolean
Definition
Ex: getStopped() or isStopped() are both valid JavaBeans names for a boolean property
Term
Java Bean Property Naming Rule #3

To complete the name of a getter or setter method,
Definition
Change the first letter of the porperty name to uppercase and then append it to the appropriate prefix (get, is or set).
Term
Java Bean Property Naming Rule #4

Setter method signatures must be marked
Definition
public, with a void return type and an argument that represents the property type.
Term
Java Bean Property Naming Rule #5

Getter method signatures ust be marked
Definition
public, take nor arguments, and have a return type that matches the artument tyhpe of the setter method for that property.
Supporting users have an ad free experience!