How can we help?

You can also find more resources in our Help Center.

Study sets matching "programming java chapter 3"

Study sets
Classes
Users

Study sets matching "programming java chapter 3"

49 terms
Java Programming Chapter 3
method
invoke
call
calling method
program module that contains a series of statements that carr…
to execute a method
to execute a method
makes a method call that invokes or calls a method
method
program module that contains a series of statements that carr…
invoke
to execute a method
Programming Java Chapter 3
An explicit import statement
Both the things a class is responsible…
Instance fields
The variable name followed by a colon…
What is the following statement an example of?... import java.ut…
A class's responsibilities include
When an object is created, the attributes associated with the…
To indicate the data type of a variable in a UML diagram, you…
An explicit import statement
What is the following statement an example of?... import java.ut…
Both the things a class is responsible…
A class's responsibilities include
8 terms
Chapter 3 - Java programming
Variable
Variable declaration
Assignment statement
final variable
a named memory location capable of storing data of a specifie…
specifies type of data variable can hold and name of variable
variable = expression (an expression)
a variable that is assigned a permanent value
Variable
a named memory location capable of storing data of a specifie…
Variable declaration
specifies type of data variable can hold and name of variable
12 terms
Java Programming Chapter 3
int x = 75;... int x = 90;... if (x !=y);... x…
because the || operator performs short…
In a switch statement, if two differen…
int x = 75;... int y = 60;... if (x > y)... x…
165
True
False
15
int x = 75;... int x = 90;... if (x !=y);... x…
165
because the || operator performs short…
True
48 terms
Chapter 3 Vocab Java Programming
reference variable
object/ instances
void method
the supreme dot (---> . <---)
variable that stores the address of of a memory space
you can call instances of objects, but not objects of instances
a method that does not return a data type
the member access operator
reference variable
variable that stores the address of of a memory space
object/ instances
you can call instances of objects, but not objects of instances
70 terms
Chapter 3 Fundamentals of Programming - Java
Write a literal representing the false…
Write a literal representing the true…
Declare a variable isACustomer suitabl…
Declare a variable hasPassedTest, and…
false
true
boolean isACustomer
boolean hasPassedTest = true;
Write a literal representing the false…
false
Write a literal representing the true…
true
38 terms
Java Programming 7th Ed Chapter 3
invoke
call
method
calling method
to execute a method
to execute a method
a program module that contains a series of statements that ca…
a method that makes a method call; the calling method invokes…
invoke
to execute a method
call
to execute a method
18 terms
Building Java Programs - Chapter 3
Parameter
Parameterize
Formal Parameter
Actual Parameter
Any of a set of characteristics that distinguish different me…
To _____ a task is to identify a set of its parameters.
A variable that appears inside parentheses in the header of a…
A specific value or expression that appears inside parenthese…
Parameter
Any of a set of characteristics that distinguish different me…
Parameterize
To _____ a task is to identify a set of its parameters.
18 terms
Building Java Programs - Chapter 3
Parameter
Parameterize
Formal Parameter
Actual Parameter
Any of a set of characteristics that distinguish different me…
To _____ a task is to identify a set of its parameters.
A variable that appears inside parentheses in the header of a…
A specific value or expression that appears inside parenthese…
Parameter
Any of a set of characteristics that distinguish different me…
Parameterize
To _____ a task is to identify a set of its parameters.
27 terms
Java Chapter 3: Program Statements
The 4 activities in programming
Conditional statements
Loop/repetition statements
Why is indentation in an if statement…
requirements, design, implementation, testing
if and if-else
while, do, for
Helps humans decipher it
The 4 activities in programming
requirements, design, implementation, testing
Conditional statements
if and if-else
29 terms
A Guide to Programming in Java, Chapter 3
program specification
class
package
encapsulation
outline of what a program is expected to do
design for an object (module); compiled code extension
(library) group of related classes
object-oriented language feature
program specification
outline of what a program is expected to do
class
design for an object (module); compiled code extension
45 terms
Java Programming - Chapter 3 - Using Methods, Classes, and Objects
Method
Invoke or Call
Calling method
Client method
A program module that contains a series of statements that ca…
When you invoke or call a method, you execute it.
The calling method makes a method call that invokes the calle…
A method calls another.
Method
A program module that contains a series of statements that ca…
Invoke or Call
When you invoke or call a method, you execute it.
78 terms
Java Programming - Chapter 2
parse
constant
literal constant
numeric constant
break into component parts
values that cannot be changed during the execution of an appl…
value that is taken literally at each use
number whose value is taken literally at each use
parse
break into component parts
constant
values that cannot be changed during the execution of an appl…
86 terms
Java Programming - Chapter 1 - Creating Java Programs
Computer program
Hardware
Software
Application software
A set of instructions that you write to tell a computer what…
General term for computer equipment.
General term for computer programs.
Performs tasks for users.
Computer program
A set of instructions that you write to tell a computer what…
Hardware
General term for computer equipment.
Programming Java Chapters 1-3
False
A volatile type of memory, used only f…
Determine if the program solves the or…
The methods that operate on the data
Java source files end with the .class extension: True or False?
RAM is usually
The purpose of validating the results of the program is to
An object typically hides it data, but allows outside code to…
False
Java source files end with the .class extension: True or False?
A volatile type of memory, used only f…
RAM is usually
16 terms
Java Programming 6th Edition Ch3 Part2of2
Information hiding
Instance methods
Instance variables
Interface
the object-oriented programming principle used when creating…
methods used with object instantiations.
data components of a class.
the part of a method that a client sees and uses. Includes th…
Information hiding
the object-oriented programming principle used when creating…
Instance methods
methods used with object instantiations.
15 terms
Java Programming Chapter 3 Vocab. - Comp. Sci. SL
Method
Call/invoke
Abstraction
Method body
A program module that contains a series of statements that ca…
Another term for executing a method
The programming feature that allows you to use a method name…
The set of statements between curly braces that follow the he…
Method
A program module that contains a series of statements that ca…
Call/invoke
Another term for executing a method
42 terms
Java Chapter 3
Abstract data type
ArithmeticException
Assignment statement
Case sensitive
A class. A data type that can store data and methods.
An exception thrown when division by 0 occurs.
A statement that gives the variable or constant on the left o…
An uppercase letter is different from the same letter in lowe…
Abstract data type
A class. A data type that can store data and methods.
ArithmeticException
An exception thrown when division by 0 occurs.
17 terms
Java Programming 6th Edition Ch3 Part1of2
Abstract data type
Accessor methods
Actual parameters
Arguments
a data type whose implementation is hidden and accessed throu…
methods that retrieve values.
the arguments in a method call.
data items sent to methods in a method call.
Abstract data type
a data type whose implementation is hidden and accessed throu…
Accessor methods
methods that retrieve values.
20 terms
Java Programming: Chapters 3-4
Accessor
Constructor
Data Hiding
Delegation
A method designed to read or get the current state of the obj…
The special method that creates an instance of a class; respo…
A term used to indicate that a class's internal state is hidd…
In a class, to assign responsibilities for a task to an outsi…
Accessor
A method designed to read or get the current state of the obj…
Constructor
The special method that creates an instance of a class; respo…
Java Programming Chapters 2 and 3
byte
short
int
long
-128 to 127
Short integers from -32768 to 32,767
An integer
Long whole numbers.
byte
-128 to 127
short
Short integers from -32768 to 32,767
27 terms
A Guide to Programming in Java, chapter 3 (year 2)
algorithm
argument
bytecode
class
set of steps that outline how to solve a problem
data passed to a method for processing
compiled Java source code
description of an object
algorithm
set of steps that outline how to solve a problem
argument
data passed to a method for processing
20 terms
Building Java Programs - Chapter 1
Algorithm
Program
Digital
Binary Number
A step-by-step description of how to accomplish a task.
A list of instructions to be carried out by a computer.
Based on numbers that increase in discrete increments, such a…
A number composed of just 0s and 1s, also known as a base-2 n…
Algorithm
A step-by-step description of how to accomplish a task.
Program
A list of instructions to be carried out by a computer.
85 terms
Java Programming 7th Ed Chapter 1
"Write once, run anywhere" (WORA)
access specifier
Allman style
applets
a slogan developed by Sun Microsystems to describe the abilit…
defines the circumstances under which a class can be accessed…
the indent style in which curly braces are aligned and each o…
Java programs that are embedded in a Web page
"Write once, run anywhere" (WORA)
a slogan developed by Sun Microsystems to describe the abilit…
access specifier
defines the circumstances under which a class can be accessed…
20 terms
Java Programming Quiz 3
What is the value of the following exp…
The following code displays ________.…
The "less than or equal to" comparison…
What is the printout of the following…
true
just right
<=
bbb
What is the value of the following exp…
true
The following code displays ________.…
just right
28 terms
Java Programming - Chapter 1 - Introduction to Java
class
file
main
main method
Everything belongs to a ____________. No global variables or…
Each class must be in its own ________, eponymously named. So…
Each class may have a _______.
To execute the ____________ in the foo class, give the comman…
class
Everything belongs to a ____________. No global variables or…
file
Each class must be in its own ________, eponymously named. So…
12 terms
Java Programming 3
parameter
return value
return type
statement
Information passed to a method.
A value returned by a method with a non-void return type. Exa…
Kind of information returned by a method. Examples: boolean,…
A legal Java sentence. Examples: method call statements, retu…
parameter
Information passed to a method.
return value
A value returned by a method with a non-void return type. Exa…
36 terms
Java Programming Chapter 4
block
outer block
inner block
nested
code between a pair of curly braces
block of code outside of another
block of code within another block
describes the state/position of an inner block
block
code between a pair of curly braces
outer block
block of code outside of another
85 terms
Java Programming - Chapter 1
method
software
machine code
computer program
self contained block or program code, similar to procedure
general term for computer programs
another term for machine language
set of instructions that you write to tell a computer what to…
method
self contained block or program code, similar to procedure
software
general term for computer programs
32 terms
Java Programming vocab chpt.3
algorithm
Argument
Bytecode
class
A set of steps that outline how to solve a problem
Data passed to a method for processing
compiled java source
the description of an object
algorithm
A set of steps that outline how to solve a problem
Argument
Data passed to a method for processing
28 terms
A Guide to Programming in JAVA Third Edition CHAPTER 3 VOCAB
Abstract data type
ArithmeticException exception
Assignment statement
case sensitive
a class; stores data and methods
thrown when division by 0 occurs
gives value to variable or constant
uppercase and lowercase are different
Abstract data type
a class; stores data and methods
ArithmeticException exception
thrown when division by 0 occurs
42 terms
Programming Java : Chapter 1
Hardware Components
The CPU (central processing unit)
Fetch/Decode/Execute cycle
main memory
- central processing unit (CPU)... -main memory... -secondary stora…
-consists of the control unit and the arithmetic and logic un…
-the CPU fetches, from main memory, the next instruction in t…
- aka the RAM (random access memory)... -holds the sequences of…
Hardware Components
- central processing unit (CPU)... -main memory... -secondary stora…
The CPU (central processing unit)
-consists of the control unit and the arithmetic and logic un…
49 terms
Java Programming - Chapter 1 - Introduction to Java and Variables
Java
Usage of Java
Where is Java used?
Java Standards
Java is an Object Oriented, platform-independent programming…
Applets running in browsers (client side) that supports inter…
1. Stand-alone programs... - some Java programs can run outside…
The Java Standard is set by Sun Microsystems... Java compilers…
Java
Java is an Object Oriented, platform-independent programming…
Usage of Java
Applets running in browsers (client side) that supports inter…
Programming Java Chapter 1
False
A volatile type of memory, used only f…
Determine if the program solves the or…
The methods that operate on the data
Java source files end with the .class extension: True or False?
RAM is usually
The purpose of validating the results of the program is to
An object typically hides it data, but allows outside code to…
False
Java source files end with the .class extension: True or False?
A volatile type of memory, used only f…
RAM is usually
Programming Java Chapter 2
Evaluating conditions that are either…
Data type
X=(float)y;
Variable
Variables of the boolean data type are useful for
Variables are classified according to their
Which of the following statements will correctly convert the…
This is a named storage location in the computer's memory
Evaluating conditions that are either…
Variables of the boolean data type are useful for
Data type
Variables are classified according to their
35 terms
Java Programming Chapter 2
constant
literal constant
numeric constant
variable
value that cannot be changed during the execution of an appli…
value taken literally at each use
number whose value is taken literally at each use
named memory location that you can use to store a value
constant
value that cannot be changed during the execution of an appli…
literal constant
value taken literally at each use
109 terms
Java: Chapter 3.
Declare a variable named myMenu suitab…
Declare a reference variable of type F…
Suppose a reference variable of type D…
Suppose a reference variable of type S…
Menu myMenu ;
File myFile;
Double myDouble2 = new Double(x);... myDouble = myDouble2;
String myString2 = new String();... myString = myString2;
Declare a variable named myMenu suitab…
Menu myMenu ;
Declare a reference variable of type F…
File myFile;
20 terms
Chapter 3 Java Basics
One-Line-Comment syntax
Block-Comment syntax
The class heading for a program named…
The main method heading
//
/* */
public class Dream
public static void main(String[] args)
One-Line-Comment syntax
//
Block-Comment syntax
/* */
16 terms
Java Vocabulary Chapter 3
Arithmetic Expression
Comments
Syntax
Semantics
A sequence of operands and operators that computes a value.
// or / /
Rules for combining objects and variables
Rules for interpreting the meaning of code
Arithmetic Expression
A sequence of operands and operators that computes a value.
Comments
// or / /
32 terms
Java Programming Chapter 2
The following is not a valid comment s…
What will be displayed after the follo…
17%3*2-12+15
Every Java application program must have
/** comment 4... The right ones are:... // comment 1... / comment 2
Nothing, this is an error.
7
a method named main
The following is not a valid comment s…
/** comment 4... The right ones are:... // comment 1... / comment 2
What will be displayed after the follo…
Nothing, this is an error.
23 terms
Java Programming Quiz #3
Class
Object
Method
How do you spell algorithm?
A set of specifications for building something. It is similar…
That which was constructed from the "blueprint."
Actions that an object performs. It is easy to spot in code,…
A-L-G-O-R-I-T-H-M
Class
A set of specifications for building something. It is similar…
Object
That which was constructed from the "blueprint."
57 terms
Java Programming Ch. 1-3
CPU
Main Memory (RAM)
Analog Signal
Digital Signal
Performs arithmetic and logical operations for the computer.
Stores data and programs before execution; an ordered sequenc…
Continuous waveforms used to represent things like sound.
Sequences of zeros and ones (low voltage, high voltage).
CPU
Performs arithmetic and logical operations for the computer.
Main Memory (RAM)
Stores data and programs before execution; an ordered sequenc…
38 terms
Java Programming. Chapter Three test
Accessor
Data Hiding
Garbage Collector
Token
A method designed to read or get the current state of an obje…
A term used to indicate that a class's internal state is hidd…
The part of the Java Virtual Machine that destroys an object…
The smallest individual substring of a parsed string such as…
Accessor
A method designed to read or get the current state of an obje…
Data Hiding
A term used to indicate that a class's internal state is hidd…
32 terms
Java Programming - Chapter 2
binary digits
bits
byte
kilobyte ( KB)
represents numeric values using two different symbols: typica…
short for binary digit, is the smallest unit of data in a com…
a group of binary digits or bits (usually eight) operated on…
thousand bytes, a unit of memory or data equal to 1,024 (210)…
binary digits
represents numeric values using two different symbols: typica…
bits
short for binary digit, is the smallest unit of data in a com…
15 terms
Chapter 2 - Java programming
Block
String literal
Comments
Class
group of statements enclosed in curly braces
consists of text enclosed by quotation marks; must be contain…
explains the meaning of some part of the program;... single line…
an application or program; begins with words "public" and "cl…
Block
group of statements enclosed in curly braces
String literal
consists of text enclosed by quotation marks; must be contain…
10 terms
Java Chapter 3 Vocabulary
Boolean expression
Boolean value
boolean type
break statement
an expression that evaluates to a Boolean value
true or false
a primitive data type for Boolean values
break out of the switch statement
Boolean expression
an expression that evaluates to a Boolean value
Boolean value
true or false
20 terms
Chapter 3 Java
arithmetic expression
comments
coordinate system
exception
a sequence of operands and operators that compute a value
non-executable statements used to make a program readable
a grid that allows a programmer to specify positions of point…
an abnormal state or error that occurs during runtime and is…
arithmetic expression
a sequence of operands and operators that compute a value
comments
non-executable statements used to make a program readable
31 terms
Java programming Chap. 3
reference variable
object
instantiate
instances
a variable that stores the address of a memory space.
where the literal string can be stored
The process of creating a new object and assigning it a value.
are objects that belong to a certain class.
reference variable
a variable that stores the address of a memory space.
object
where the literal string can be stored
18 terms
Chapter 1 - Java programming
Computer
Computer program
Hardware
Software
machine that performs computations, logical operations, and d…
some prescribed sequence of instructions that a computer runs…
physical components of a computer
programs that run on a computer
Computer
machine that performs computations, logical operations, and d…
Computer program
some prescribed sequence of instructions that a computer runs…
18 terms
Java Programming - Chapter 1
Algorithm
Computer program
Hardware
Software
A sequence of steps that is unambiguous, executable, and term…
This tells a computer, in minute detail, the sequence of step…
The physical computer and peripheral devices
The programs the computer executes
Algorithm
A sequence of steps that is unambiguous, executable, and term…
Computer program
This tells a computer, in minute detail, the sequence of step…
1 of 10