Shared Flashcard Set

Details

chapt 5
stephb
21
Computer Science
Not Applicable
08/17/2006

Additional Computer Science Flashcards

 


 

Cards

Term
a _____ method is one that simply performs a task and then teriminates
Definition
void
Term
a ______ returning method not only performs a task, but also sends a value back to the code that called it
Definition
value
Term
to create a ________ u must write a definition, which consists of a header and a body
Definition
method
Term
method belongs to a class not a specific object
Definition
static
Term
______ type-void or the data type from a value returning method
Definition
return
Term
_______ name- name that is descriptive of what the method does
Definition
method
Term
_________ contain nothing or a list of one or more variable declarations if the method is capable of recieving arguments
Definition
parenthesis
Term
methods are executed by method _______ ________
Definition
call statements
Term
values that are sent into a method are called ___________
Definition
arguments
Term
the ____ type of an argument in method call must correspond to the variable declaration in the parentheses of the method declaration. the parameter is the varable that holds the value being passed into a method
Definition
data
Term
when u pass an argument to a method, be sure that the arguments _____ type is compativle wit the _______ variables data type
Definition
data, parameters
Term
java will automatically perform ______ conversions but _______ conversions will cause a compiling err
Definition
widening, narrowing
Term
if a paramether variable is changed inside a method is has ____ affect on the orginal argument
Definition
no
Term
a methods paramether variables are _______ and distinct from the arguments tat are listed inside the parentheses of the method call
Definition
separate
Term
the class type variable does not hold the actual data item that is associated with it , but holds the _________ adress of the object
Definition
memory
Term
a varable associated with an object is called a ________ variable
Definition
refrence
Term
when an object such as a string is passed as an argument, it is actually a _________ to the object that is passed
Definition
reference
Term
strings are ________ objects, which means that they cannot be changed
Definition
immutable
Term
a ________ varible is declared inside a method and is not accessible to statements outside the method
Definition
local
Term
different methods can have local variables with the same names becuse the methods cannot see each others local ______
Definition
variables
Term
local varables are not __________ intialized with a default value and must be gven a value before then can be used
Definition
automatically
Supporting users have an ad free experience!