Language Basics Flashcards
in the Java programming language, the terms “field” and «…» are both used
variable
objects store their individual states in “…”
non-static fields
Non-static fields are also known as …
instance variables
Non-static fields are also known as instance variables because …
their values are unique to each instance of a class
A … is any field declared with the static modifier
class variable
Exactly … copy of “class variable” in existence, regardless of how many times the class has been instantiated
one
Similar to how an object stores its state in fields, a method will often store its temporary state in …
local variables
… variable is declared between the opening and closing braces of a method
local
variables in method signature is called ..
parameters
The convention, however, is to always begin your variable names with a …
letter
The … character, by convention, is never used at all
dollar sign
When choosing a name for your variables, use … instead of cryptic abbreviations
full words
How to name constant variable? (static final)
capitalize every letter and separate subsequent words with the underscore character
If the name you choose consists of only one word, spell that word in all …
lowercase letters
If name consists of more than one word, … of each subsequent word
capitalize the first letter