Key Concepts Flashcards
Main memory is volatile…
meaning the stored information is maintained only as long as electric power is supplied.
A do statement excutes its loop body…
at least once.
When an ArrayList object is created you must specify…
the type of element that will be stored in the list.
A switch statement matches a …
character or integer value to one of several possible cases
A while statement executes the same statement …
until its condition becomes false
What method can be used to determine the relative order of Strings?
the compareTo() method
In a nested if statement, an else clause is matched to the closest unmatched…
if
A constructor cannot have any
return type, even void
A variable declared in a method is…
local to that method and cannot be used outside of it
Instance variables should be declared with …
private visibility to promote encapsulation
The value returned from a method must be consistent …
with the return type specified in the method header.
A wrapper class
allows a primitive value to be managed as an object
printf method
was added to Java to support the migration of legacy systems
A pseudorandom number generator
performs a complex calculations to create the illusion of randomness.
Java uses the…
16-bit Unicode character set to represent character data.