How can we help?

You can also find more resources in our Help Center.

Study sets matching "java 9"

Study sets
Classes
Users

Study sets matching "java 9"

20 terms
java 9
iteration
execute
recent
immediately
n. sự nhắc đi nhắc lại ... tính lặp đi lặp lại
v. thực thi, thực hiện,thi hành,chấp hành
(adj) gần đây, mới đây, mới xảy ra
(adv) ngay, ngay lập tức, tức thì
iteration
n. sự nhắc đi nhắc lại ... tính lặp đi lặp lại
execute
v. thực thi, thực hiện,thi hành,chấp hành
91 terms
Java : Inheritance (9)
Java : Inheritance (605-669)
CONCEPT
is a relationship
FACT
Java : Inheritance (605-669)
Inheritance allows a new class to be based on an existing cla…
when one object is a specialized version of another object (6…
when an is a relationship exists between objects, it means…
Java : Inheritance (605-669)
Java : Inheritance (605-669)
CONCEPT
Inheritance allows a new class to be based on an existing cla…
19 terms
Java OOP - P9
e
c
a
c
java server page is an extension of... (a) html (b) xml (c) xhtm…
Consider the following program while noting the missing varia…
Consider the following additional driver program:... public clas…
What is the result of the expression 75.22 + "5.2"?... (a) The d…
e
java server page is an extension of... (a) html (b) xml (c) xhtm…
c
Consider the following program while noting the missing varia…
11 terms
Java 2 Week 9
Pass by Value
Algorithim
Memory Leak
Garbage collector
pass-by- value means that the JVM passes a copy of the argume…
A process or set of rules to be followed in calculations or o…
This occurs if you forget to close a resource, or a reference…
The Java garbage collector is a utility program that searches…
Pass by Value
pass-by- value means that the JVM passes a copy of the argume…
Algorithim
A process or set of rules to be followed in calculations or o…
31 terms
Java Chapter 9
"is a " relationship
Save time, Reduce error, ease understa…
Base Class
Derived class
The relationship between a superclass and an inherited class
What can using inheritance do for you?
A class that is used as a basis for inheritance
A class that inherits from a base class
"is a " relationship
The relationship between a superclass and an inherited class
Save time, Reduce error, ease understa…
What can using inheritance do for you?
12 terms
Java 1 Week 9
Primitive variable
Reference Variable
String Class
Concatenate
Java supports eight basic data types known as primitive types…
A reference is what is used to describe the pointer to the me…
The String class represents character strings. Strings, which…
Concatenation operator ( + ),... Allows you to join Strings and…
Primitive variable
Java supports eight basic data types known as primitive types…
Reference Variable
A reference is what is used to describe the pointer to the me…
19 terms
Java OOP - P9
e
c
a
c
java server page is an extension of... (a) html (b) xml (c) xhtm…
Consider the following program while noting the missing varia…
Consider the following additional driver program:... public clas…
What is the result of the expression 75.22 + "5.2"?... (a) The d…
e
java server page is an extension of... (a) html (b) xml (c) xhtm…
c
Consider the following program while noting the missing varia…
8 terms
Java 3 - Quiz 9
Event-driven Programming
boolean
action events
actionPerformed()
A programming style that uses a signal and response approach…
The JFrame method setVisible() takes one argument of type:
A button fires events known as:
The ActionListener interface requires that the method _____ b…
Event-driven Programming
A programming style that uses a signal and response approach…
boolean
The JFrame method setVisible() takes one argument of type:
21 terms
Java Ch.9
Compression
Rarefraction
Amplitude
Cycles
Increase air pressure
Decrease in air pressure
Our perception of volume
Patterns of rarefaction and compression
Compression
Increase air pressure
Rarefraction
Decrease in air pressure
22 terms
Java Chapter 9
Arithmetic Exception
Null Pointer Exception
Type-Mismatch
Logic Error
dividing by 0
attempt to call a null reference
trying to store or use specific data types incorrectly
code does not do what you wanted
Arithmetic Exception
dividing by 0
Null Pointer Exception
attempt to call a null reference
60 terms
Java Chapter 9
applets
applet viewer
html
web browser
java programs that are called from within another application
program which comes with the java SDK and allows you to view…
simple language used to create web pages for the internet
program that allows you to display html documents on your com…
applets
java programs that are called from within another application
applet viewer
program which comes with the java SDK and allows you to view…
50 terms
Java Chapter 9 and 13
throw an exception
java.lang
throwing an exception
one
Try blocks contain code that could possibly:... Answers: ... handl…
The Exception class belongs to the package:... Answers: ... java.i…
The execution of a throw statement is referred to as:... Answer…
The catch block has ________ parameters.... Answers: ... zero... one…
throw an exception
Try blocks contain code that could possibly:... Answers: ... handl…
java.lang
The Exception class belongs to the package:... Answers: ... java.i…
49 terms
Java Chapter 9 Review
What does the following code do? Assum…
We compare sorting algorithms by exami…
Both the Insertion Sort and the Select…
Which of the following classes would y…
Answer: D. Explanation: The statement if (list[j] < temp) c++…
Answer: A. Explanation: Different sorting algorithms require…
Answer: c. Explanation: Both sorting algorithms use two neste…
Answer: d. Explanation: The JFileChooser class creates dialog…
What does the following code do? Assum…
Answer: D. Explanation: The statement if (list[j] < temp) c++…
We compare sorting algorithms by exami…
Answer: A. Explanation: Different sorting algorithms require…
25 terms
Chapter 9 Java
9.1... For the next 4 questions below, u…
2) Which of the following lists of ins…
3) Which of the following lists of ins…
4) Which of the following is true rega…
B) A3 is a subclass of A2 and A2 is a subclass of A1
x, z, a, b
x, z, a, q
It is accessible only in A1
9.1... For the next 4 questions below, u…
B) A3 is a subclass of A2 and A2 is a subclass of A1
2) Which of the following lists of ins…
x, z, a, b
10 terms
Java quiz 9
The Comparable interface...
A variable that stores an object that…
Which of the following is not true abo…
The Cloneable interface...
...compares two objects
All of the above
The class that controls the user interface creates a data acc…
...indicates if an object can be cloned
The Comparable interface...
...compares two objects
A variable that stores an object that…
All of the above
27 terms
Java Ch 9
1. In an inheritance relationship, thi…
2. In an inheritance relationship, thi…
3. This key word indicates that a clas…
4. These are two of the most useful me…
b. superclass
c. subclass
d. extends
a. toString and equals methods
1. In an inheritance relationship, thi…
b. superclass
2. In an inheritance relationship, thi…
c. subclass
19 terms
Java Chapter 9
collection
homogeneous
ADT
java collections api
object that holds other objects
collections that can hold the same type of object
abstract data type is a collection of data and the operations…
java standard class library has several classes
collection
object that holds other objects
homogeneous
collections that can hold the same type of object
19 terms
Java OOP - 9
e
c
a
c
java server page is an extension of... (a) html (b) xml (c) xhtm…
Consider the following program while noting the missing varia…
Consider the following additional driver program:... public clas…
What is the result of the expression 75.22 + "5.2"?... (a) The d…
e
java server page is an extension of... (a) html (b) xml (c) xhtm…
c
Consider the following program while noting the missing varia…
91 terms
Java : Inheritance (9)
Java : Inheritance (605-669)
CONCEPT
is a relationship
FACT
Java : Inheritance (605-669)
Inheritance allows a new class to be based on an existing cla…
when one object is a specialized version of another object (6…
when an is a relationship exists between objects, it means…
Java : Inheritance (605-669)
Java : Inheritance (605-669)
CONCEPT
Inheritance allows a new class to be based on an existing cla…
22 terms
Java Chapter 8 and 9
Application
Control Pattern
Data model
Event Driven Program
Class type that sets up the other elements in a main method t…
support the methods, properties, events, and relatives
A graphical depiction of the communication between program co…
An event that is triggered by the user doing something
Application
Class type that sets up the other elements in a main method t…
Control Pattern
support the methods, properties, events, and relatives
39 terms
9. JavaScript Data Types
What data types are there?
examples of that
Where do we store the data in js?
Why do we have to know about the type…
numbers, strings, arrays, objects and more:
var length = 16; // Number... var lastName = "Johnson"; // Strin…
in a variable
js treats them in a different way
What data types are there?
numbers, strings, arrays, objects and more:
examples of that
var length = 16; // Number... var lastName = "Johnson"; // Strin…
57 terms
java 7-9
array
size declarator
subscript
initialization list
Holds multiple values of the same data type simultaneously.
The number inside the brackets which indicates the number of…
Used as an index to pinpoint a specific element within an arr…
The series of values inside the braces and separated with com…
array
Holds multiple values of the same data type simultaneously.
size declarator
The number inside the brackets which indicates the number of…
38 terms
Java Ch 9
Parent class
Derived class
Instances of child classes
"protected" modifier
superclass, base class
child class, subclass
Inherit the variables and methods defined by the parent class
Allows a variable in a superclass to be referenced directly i…
Parent class
superclass, base class
Derived class
child class, subclass
16 terms
Java Chapter 9: Arrays
array
element
enhanced for loop
index
a data structure whose elements are accessed by index positions
a value that is stored in an array
special type of for loop that traverses an array from beginni…
relative position of components of an array
array
a data structure whose elements are accessed by index positions
element
a value that is stored in an array
Java Chapter 9
Inheritance
Parent class... Superclass... Base class
is-a
extends
The process of deriving a new class from an existing one.
The original class that is used to derive a new one.
Inheritance creates a(n) ______ relationship
The java reserved word to indicate a new class is being deriv…
Inheritance
The process of deriving a new class from an existing one.
Parent class... Superclass... Base class
The original class that is used to derive a new one.
12 terms
IS - Java Chapter 9
_____ is a form of software reusabilit…
A superclass's _____ members can be ac…
In a ______ relationship, an object of…
In a ______ relationship, a class obje…
Inheritance
public and protected
is-a or inheritance
has-a or composition
_____ is a form of software reusabilit…
Inheritance
A superclass's _____ members can be ac…
public and protected
60 terms
Java Chapter 9
applets
applet viewer
html
web browser
java programs that are called from within another application
program which comes with the java SDK and allows you to view…
simple language used to create web pages for the internet
program that allows you to display html documents on your com…
applets
java programs that are called from within another application
applet viewer
program which comes with the java SDK and allows you to view…
15 terms
Java ch 9 Vocab
Code Reuse
Is-a Relationship
Inheritance Hierarchy
Inheritance
The practice of writing program code once and using it in man…
A hierarchical connection between two categories in which one…
A set of hierarchical relationships between classes of objects
A programming technique that allows a derived class (subclass…
Code Reuse
The practice of writing program code once and using it in man…
Is-a Relationship
A hierarchical connection between two categories in which one…
60 terms
Java Chapter 9
applets
applet viewer
html
web browser
java programs that are called from within another application
program which comes with the java SDK and allows you to view…
simple language used to create web pages for the internet
program that allows you to display html documents on your com…
applets
java programs that are called from within another application
applet viewer
program which comes with the java SDK and allows you to view…
18 terms
Java Chapter 9
sorting
ascending order
descending order
algorithm
the process of arranging a series of in some logical order
the order of objects from lowest to highest value
the order of objects arranged from highest to lowest
a process or set of steps the solve a problem
sorting
the process of arranging a series of in some logical order
ascending order
the order of objects from lowest to highest value
9 terms
Java Chapter 9
Inheritance
Substitution Principle
extends
Subclass
A relationship between a more general class(superclass) and a…
States that you can always use a subclass object when a super…
Reserve word indicates that a class inherits from a superclass
Can override a superclass method by providing a new implement…
Inheritance
A relationship between a more general class(superclass) and a…
Substitution Principle
States that you can always use a subclass object when a super…
10 terms
Java (week 9)
Constructor (3 different types of cons…
What is a Parameterized constructor?
What is a Copy constructor?
What is a Default constructor?
Parameterized constructor... Copy constructor... Default constructor
initialize all the instance variables to the values coming in…
copies the values of all instance values of an existing objec…
empty parameters (no inputs)... -assign default values to the in…
Constructor (3 different types of cons…
Parameterized constructor... Copy constructor... Default constructor
What is a Parameterized constructor?
initialize all the instance variables to the values coming in…
14 terms
Java Methods Ch.7&9
boolean
modules
objects; objects
instance methods
What is the data type result of a relational operator?
Modular programs divide the program into smaller, more manage…
Object-oriented programs break programs into ___________, and…
Non-static variables are used to represent what?
boolean
What is the data type result of a relational operator?
modules
Modular programs divide the program into smaller, more manage…
14 terms
Java Methods Ch.7&9
boolean
modules
objects; objects
instance methods
What is the data type result of a relational operator?
Modular programs divide the program into smaller, more manage…
Object-oriented programs break programs into ___________, and…
Non-static variables are used to represent what?
boolean
What is the data type result of a relational operator?
modules
Modular programs divide the program into smaller, more manage…
8 terms
Think Java Vocabulary Chapter 9
object
primitive
Unicode
immutable
A collection of related data that comes with a set of methods…
A data type that stores a single value and provides no methods.
A standard for representing characters in most of the world's…
An object that, once created, cannot be modified. Strings are…
object
A collection of related data that comes with a set of methods…
primitive
A data type that stores a single value and provides no methods.
9 terms
Think java chapter 9
Package
AWT
Instance
Instance variable
A collection of classes. Java classes are organized in packag…
The Abstract Window Toolkit, one of the biggest and commonly-…
An example from a category. My cat is an instance of the cate…
One of the named data items that make up an object. Each has…
Package
A collection of classes. Java classes are organized in packag…
AWT
The Abstract Window Toolkit, one of the biggest and commonly-…
25 terms
JavaScript 9
Sometimes you will need to test more t…
Concerning the effect of a logical and…
Comparisons with the Logical And Opera…
The ... returns true if either of the…
logical and operator (&&)... if (num > 5 && num < 10) {... return…
nesting an if statement inside another if:... if (num > 5) {... i…
function myTest(val) {... // Only change code below this line…
logical or operator (||)
Sometimes you will need to test more t…
logical and operator (&&)... if (num > 5 && num < 10) {... return…
Concerning the effect of a logical and…
nesting an if statement inside another if:... if (num > 5) {... i…
25 terms
JavaScript 9
What is the protoype property availabl…
What is the term for a JavaScript func…
You have created a custom object for s…
Which type of error are you most likel…
All javascript objects
Constructor
A function
Logic error
What is the protoype property availabl…
All javascript objects
What is the term for a JavaScript func…
Constructor
30 terms
Java Chapter 9
Superclass
Subclass
a correct statement about inheritance
setVehicleClass(2.0);
a class that represents the most general entity in an inherit…
a class that represents a more specific entity in an inherita…
you can always use a subclass object in place of a superclass…
the missing code in the following fragment, intended to call…
Superclass
a class that represents the most general entity in an inherit…
Subclass
a class that represents a more specific entity in an inherita…
30 terms
Java - Chapter 9 Inheritance
Inheritance
Via inheritance, the new class contain…
Relationship between parent and child…
Classes use ______in the header to cre…
Making a new class from an existing one.
variables, methods
is-a
extends
Inheritance
Making a new class from an existing one.
Via inheritance, the new class contain…
variables, methods
133 terms
Java Methods Chapter 9
create fractions
do things with fractions (ex. add, mul…
client
developer
What do constructors in the Fraction class do?
What do methods in the Fraction class do?
A class that uses a given class X is called a ______ of X.
Person who needs to know precisely how different features of…
create fractions
What do constructors in the Fraction class do?
do things with fractions (ex. add, mul…
What do methods in the Fraction class do?
10 terms
Java Final Set 9
constructor
byte
boolean operator
object
set of statements initializing the instance variables of an o…
8 bits- all computers use bytes as smallest unit of memory
operator that can be applied to boolean values- or, and, not.
a value of a class type
constructor
set of statements initializing the instance variables of an o…
byte
8 bits- all computers use bytes as smallest unit of memory
19 terms
Java Chapter 9
This type of method cannot access any…
Consider the following UML diagram. No…
Consider the following UML diagram. Ho…
Consider the following UML diagram. Wr…
static
2
2
public String toString()... {... return "Length = " + this.length…
This type of method cannot access any…
static
Consider the following UML diagram. No…
2
12 terms
Java Chapter 9
__________ is a form of software reusa…
A superclass's __________ members can…
In a(n) __________ relationship, an ob…
In a(n) __________ relationship, a cla…
Inheritance
Public and protected
Is-a
Has-a
__________ is a form of software reusa…
Inheritance
A superclass's __________ members can…
Public and protected
9 terms
Java Quiz 9
What is the reserved word used to decl…
_______ is an object-oriented concept…
Suppose the class Dog is the parent of…
True/False: The two classes mentioned…
d
Inheritance
extends Dog
b
What is the reserved word used to decl…
d
_______ is an object-oriented concept…
Inheritance
62 terms
Java 2 Chapter 9
anonymous object
object
constructors
new operator
an object created with no reference variable
instance of a class
special method type invoked to create new objects
invokes constructor to create new object
anonymous object
an object created with no reference variable
object
instance of a class
28 terms
Java Ch 9
1. In an inheritance relationship, thi…
2. In an inheritance relationship, thi…
3. This key word indicates that a clas…
4. In a subclass does not have access…
b. superclass
c. subclass
d. extends
...
1. In an inheritance relationship, thi…
b. superclass
2. In an inheritance relationship, thi…
c. subclass
10 terms
Lecture 9: Java and JS
Java Applets
Container Classes
GUI Helper Classes
Swing GUI Components
client side, compiled code, downloaded from server with webpage
Frames, Containers, Window, Dialog
Graphics, Color, FontMetrics, Font, Dimension
JButton, JCheckBox, JRadioButton, JTextArea
Java Applets
client side, compiled code, downloaded from server with webpage
Container Classes
Frames, Containers, Window, Dialog
49 terms
Java Gaddis Ch 8 & 9
This is a collection of programming st…
A class is analogous to a(n) ______.... a…
An object is a(n) ______.... a. blueprint…
This is a class member that holds data…
a. class
b. blueprint
d. instance of a class
c. field
This is a collection of programming st…
a. class
A class is analogous to a(n) ______.... a…
b. blueprint
17 terms
Java 2 Chapter 9
What is a Class?
What is Data Encapulsation?
What is Data Hiding?
What are Constructors?
Template or blueprint for creating objects.
The fact that data and code are combined into single objects
Process of hiding the internal state of objects by making fie…
Used to create objects from a class and return their address…
What is a Class?
Template or blueprint for creating objects.
What is Data Encapulsation?
The fact that data and code are combined into single objects
1 of 10