Java Basics Flashcards
What does XXX mean in the following:
class XXX
Class or program name
What does each of these mean:
\
“\n”
“
n
Double slash
\”
\ = Next character is printable
“\n” = New line
“ = String Delimiter
n = Printable n
\ = Printable slash
\” = Printable
Any character used as an identifier must be?
Letter, digit, or underscore (_)
What can the first character in an identifier not be?
A digit
What is PascalCase and camalCase?
PascalCase = All the starting letters in a word are capitalized
camalCase = First letter of the first word is not capitalized but rest are
To which are PascalCase and camalCase conventionally assigned as?
PascalCase = Classes
camalCase = Variables and methods
For numeric data types, is it possible to convert from smaller to larger types but not reverse.
TRUE or FALSE
TRUE
What is a cast?
Forcing Java to make a data type conversion
What are constants and what are they conventionally assigned as?
Variables which’s values cannot be changed.
All UPPERCASE
What is a computer?
A machine that stores data (numbers, words, pictures), interacts with devices (monitors, speakers, mouse), and executes commands
What is programming?
Giving the computer a set of instructions to follow or execute
What is the processor in a computer responsible for?
Executing a variety of instructions
What did early model computers use to carry out translations?
Assembler
What does the assembler do?
Takes a sequence of characters such as iload and translates it into command code 21
What does a compiler do?
Translates high-level descriptions into machine instructions