How can we help?

You can also find more resources in our Help Center.

Study sets matching "java 3"

Study sets
Classes
Users

Study sets matching "java 3"

20 terms
Java 3
The variable declaration ... float priceQ…
The variable ... House Number... is incorrec…
Name of method I am calling... AskForAmou…
computing industry standard used to un…
a field named price quote holds numerical data including deci…
white space is not permitted
whatAmount
unicode
The variable declaration ... float priceQ…
a field named price quote holds numerical data including deci…
The variable ... House Number... is incorrec…
white space is not permitted
50 terms
Java 3
b
c
a
a
QN=101(129) public class Test{... public static void main(String…
QN=102(77) public class Test{... public static void main(String[…
QN=103(4924) public class Test{... public static void main(Strin…
QN=104(4925) public class Test{... public static void main(Strin…
b
QN=101(129) public class Test{... public static void main(String…
c
QN=102(77) public class Test{... public static void main(String[…
10 terms
Java3
perform
declared
instance variable
operate
(v) biểu diễn; làm, thực hiện
adj. công khai, công nhiên, không úp mở ... khai báo
biến thuộc tính
(v) hoạt động, thực hiện chức năng
perform
(v) biểu diễn; làm, thực hiện
declared
adj. công khai, công nhiên, không úp mở ... khai báo
30 terms
Java Array3
Declare x array to hold elements are 1…
Declare an array for the months of the…
Array named days has days of the week.…
You have an array of 77 whole numbers…
int x[] = {1.2, 2.4, 3.6, 4.8 };
String[] months=new String[12];
"sat"
xyz[76] =-1;
Declare x array to hold elements are 1…
int x[] = {1.2, 2.4, 3.6, 4.8 };
Declare an array for the months of the…
String[] months=new String[12];
14 terms
Java 3
Arithmetic Expression
Comments
Coordinate System
Exception
an expression made of operands and operators
explanatory statements inserted in a program to clarify certa…
programs use the upper left corner of this graph system and x…
an event taking place in the middle of a program that disrupt…
Arithmetic Expression
an expression made of operands and operators
Comments
explanatory statements inserted in a program to clarify certa…
35 terms
Java 3
Class AccountTest
Instance Variable
setName
getName
Main method creates and uses Account object to test class Acc…
Maintain data to each object/instance of the class.
This is a method of a class. This method stores a name in an…
This is a method of a class. This method obtains a name from…
Class AccountTest
Main method creates and uses Account object to test class Acc…
Instance Variable
Maintain data to each object/instance of the class.
10 terms
Java 3
access specifier
encapsulation
explicit parameter
implicit parameter
public/private
using methods to access data but not see it
System.out.println(greeting) greeting is the explicit paramet…
System.out, the name of the object that you are getting a met…
access specifier
public/private
encapsulation
using methods to access data but not see it
10 terms
JAVA 3
Objects of type List allow duplicates.
The Collections class (as opposed to t…
Objects of type Set allow duplicates.
An object of type SortedSet is a Set t…
True
True
False
False
Objects of type List allow duplicates.
True
The Collections class (as opposed to t…
True
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.
10 terms
Java 3
The best data type for the data below…
Omission of the semicolon, ";", to sep…
The (int) syntax in the Java statement…
The following statement can produce th…
char
syntax
type casting
True
The best data type for the data below…
char
Omission of the semicolon, ";", to sep…
syntax
11 terms
BHS JAVA Lesson 3
Concatenation
length()
substring()
indices
Combines strings with a +
Method used to find the number of characters in a string--Cou…
Method used to count the number of characters in a piece of s…
Number in the count of a substring
Concatenation
Combines strings with a +
length()
Method used to find the number of characters in a string--Cou…
5 terms
Java 3 - Quiz 3
Object
empty
False
False
question unavailable
If the head instance variable of a linked list contains a ref…
True or False. When using a linked list, you do not need to k…
True or False. Forgetting to set the reference instance varia…
Object
question unavailable
empty
If the head instance variable of a linked list contains a ref…
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:
8 terms
Java 3 - Quiz 2
Stack
last in - first out
recursive solutions may be easier to u…
6
The underlying data structure used by the computer during rec…
The stack is a ________________ data structure.
A recursive solution can be preferable to an iterative soluti…
public static double rec (double n) { if (n == 0) { return 1;…
Stack
The underlying data structure used by the computer during rec…
last in - first out
The stack is a ________________ data structure.
8 terms
Java 3 - Quiz 8
d) toString()
size()
boolean
a) Queue<T>
All of the following methods are part of the Collection<T> in…
The method ___ can be used to determine the number of element…
The method contains(Object o) of the ArrayList class returns…
All of the following are members of Java's Collection class e…
d) toString()
All of the following methods are part of the Collection<T> in…
size()
The method ___ can be used to determine the number of element…
62 terms
JAVA Chanper3
Method
Execute a method
Calling method (client method)
Called method
A program module ... Contains a series of statements ... Carries ou…
Invoke or call from another method
Makes a method call
Invoked(调用) by a calling method
Method
A program module ... Contains a series of statements ... Carries ou…
Execute a method
Invoke or call from another method
8 terms
Java 3 - Quiz 10
JMenuItem
JTextArea
False
False
A menu item is an object of the class:
A _____ allows multiple lines of text to be displayed.
True or False. The actionPerformed method of the ActionListen…
True or False. When using the BorderLayout manager you must s…
JMenuItem
A menu item is an object of the class:
JTextArea
A _____ allows multiple lines of text to be displayed.
14 terms
3.730 E Java Common Coding Patterns
Traverse an array starting at the begi…
Traverse a list starting at the beginn…
Traverse an array starting at the end.
Traverse a list starting at the end.
for ( int inx = 0 ; inx < array.length ; ++inx )... someMethod(…
for ( int inx = 0 ; inx < list.size() ; ++inx )... someMethod(…
for ( int inx = array.length - 1 ; inx >= 0 ; --inx )... someMe…
for ( int inx = list.size() - 1 ; inx >= 0 ; --inx )... someMet…
Traverse an array starting at the begi…
for ( int inx = 0 ; inx < array.length ; ++inx )... someMethod(…
Traverse a list starting at the beginn…
for ( int inx = 0 ; inx < list.size() ; ++inx )... someMethod(…
18 terms
Java OOP - P3
a
d
d
b
Use the following Java program for answering question 11 and…
Consider the following program:... class prob1{... int puzzel(int n…
The blank space in the following sentence has to be correctly…
Java compiler javac translates Java source code into ........…
a
Use the following Java program for answering question 11 and…
d
Consider the following program:... class prob1{... int puzzel(int n…
Java Keywords - Set 3
const
goto
true
false
a reserved word in java that is not currently used (other lan…
a reserved word in java that is not currently used (other lan…
indicates a statement is accurate
indicates a statement is not accurate
const
a reserved word in java that is not currently used (other lan…
goto
a reserved word in java that is not currently used (other lan…
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 / /
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
/* */
31 terms
Java 3 Vocab
Stream
Float
Exit( ) Method
Instantiate
data flowing in or out of a program
stores number with up to 6 or 7 decimals as single precision…
is used to terminate an application that displays a graphical…
declare the instance of
Stream
data flowing in or out of a program
Float
stores number with up to 6 or 7 decimals as single precision…
45 terms
Java Ch. 3
Example of implicit parameter - mySavi…
Method
Constructor
When are local variables initialized
mySavings
What parameters and local variables belong to
To set the position of the shape when drawing complex shapes
You must initialize local variables in a method body
Example of implicit parameter - mySavi…
mySavings
Method
What parameters and local variables belong to
26 terms
Java CH 3
Which one of the following would conta…
A Java program must have at least one…
The term ________ typically refers to…
If the following Java statements are e…
Demo.class
Class definitionp
d. Standard output device Correct
b. The top three winners are ... Jody, the Giant ... Buffy, the Bar…
Which one of the following would conta…
Demo.class
A Java program must have at least one…
Class definitionp
19 terms
Chapter 3 Test Java
implementing a class
method definition
constructors contain
constructor name
you first need to know which methods are required
contains an access specifier (usually public), a return type,…
instructions to initialize objects and the instructions to in…
always the same as the class name
implementing a class
you first need to know which methods are required
method definition
contains an access specifier (usually public), a return type,…
23 terms
3.900 D JAVA Recursion
Write the code for the method for comp…
Is the gcd computation recursive metho…
Write the code for the method for comp…
Write a tail recursive method for comp…
public static int gcd(int x, int y) {... if (x % y == 0)... retur…
True
public int Factorial (int num) {... if (num == 1)... return 1;... el…
public int factorial(int Num) {... if(Num == 0) {... return 1; }…
Write the code for the method for comp…
public static int gcd(int x, int y) {... if (x % y == 0)... retur…
Is the gcd computation recursive metho…
True
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…
8 terms
Java 1 Week 3
Constant
Identifier
Prologue
Main method
A constant in Java is used to map an exact and unchanging val…
This is the correct name for a programs components name e.g.…
Special example of a block comment, providing information abo…
Public static void main (String [] args)
Constant
A constant in Java is used to map an exact and unchanging val…
Identifier
This is the correct name for a programs components name e.g.…
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;
6 terms
Java 3- Conditional Branching
Conditional branching
if-statement
if-else statement
if-else if-else statement
A programming instruction that directs the computer to anothe…
A conditional control structure which executes a set of state…
An optional else clause that is executed when the if conditio…
Used to decide among three or more actions and take the form:…
Conditional branching
A programming instruction that directs the computer to anothe…
if-statement
A conditional control structure which executes a set of state…
1,950 terms
Java - combined #3
Comparing Data
Comparing Floating Point Values
Comparing Characters
Comparing Strings
When comparing data using boolean expressions, it's important…
You should rarely use the equality operator (==) when compari…
Characters in Java are based on the Unicode character set... Un…
Remember that in Java a character string is a String object…
Comparing Data
When comparing data using boolean expressions, it's important…
Comparing Floating Point Values
You should rarely use the equality operator (==) when compari…
Java week 3-4
Declaring Interface
Key word for interface
Interfaces do not have
A class can _________ only one class;…
interface Animal (by default any method will be public and an…
implements ie public class MammalInt implements Animal
constructors
extend, interfaces
Declaring Interface
interface Animal (by default any method will be public and an…
Key word for interface
implements ie public class MammalInt implements Animal
22 terms
Absolute Java Chapter 3
Compound Statement
if-else statement
switch statement
multiway if-else statement
a list of statments encolsed in a pair of braces, is treated…
chooses between two alternative actions based on the value of…
is the only other kind of Java statement that implements mult…
it is simply an ordinary if-else statement nested inside if-e…
Compound Statement
a list of statments encolsed in a pair of braces, is treated…
if-else statement
chooses between two alternative actions based on the value of…
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
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
5 terms
JavaScript lesson 3
data
string
false
false
JavaScript recognizes three basic ___ types: string, number a…
Which data type holds text?... number... text... string... Boolean
The Boolean data type can store one of two possible values: t…
If we type JS console 10 < 5, what we get as a result?
data
JavaScript recognizes three basic ___ types: string, number a…
string
Which data type holds text?... number... text... string... Boolean
106 terms
Java Chapter 3
Like all high-level programming langua…
_ use conditions that are Boolean expr…
How do you compare two values, such as…
less than or equal to (as relational o…
selection statements
Selection statements
six relational, comparison
<=
Like all high-level programming langua…
selection statements
_ use conditions that are Boolean expr…
Selection statements
20 terms
JavaScript Terms 3
Alert(message)
Confirm
Message
Infinite loop
Displays a message box
Displays a message and returns true ok
The test to display
Fixing a bug/problem in a loop
Alert(message)
Displays a message box
Confirm
Displays a message and returns true ok
20 terms
JavaScript 3
Convert the assignments for myVar = my…
The ... operator multiplies a variable…
myVar = myVar * 5;... Convert the above…
The ... operator divides a variable by…
myVar -= 5;
*=
myVar *= 5;
/=
Convert the assignments for myVar = my…
myVar -= 5;
The ... operator multiplies a variable…
*=
20 terms
Java OOP - P3
c
a
d
d
What would the output be of the above Program - III before an…
What would the argument passing method be which is used by th…
Consider the following program:... class prob1{... int puzzel(int n…
The blank space in the following sentence has to be correctly…
c
What would the output be of the above Program - III before an…
a
What would the argument passing method be which is used by th…
40 terms
Java Found 3
1) The ________________ operator is us…
A special method that is invoked to se…
3) Which of the following is an invali…
Assume that we have a Random object re…
Answer: b... Explanation: The new operator instantiates an obje…
Answer: d... Explanation: The constructor is called to set up a…
Answer: e... Explanation: Choices a and d represent the standar…
Answer: c... Explanation: When called with 16 as a parameter, t…
1) The ________________ operator is us…
Answer: b... Explanation: The new operator instantiates an obje…
A special method that is invoked to se…
Answer: d... Explanation: The constructor is called to set up a…
19 terms
JAVA ch 3
Q1: Method headers contain all of the…
2: Every Java application is composed…
3.2 Q3: A class instance creation expr…
3.2 Q4: Calling a method of another ob…
ANS: b. Left brace.
ANS c. public class declaration
ANS: d. All of the above.
ANS a. The dot separator.
Q1: Method headers contain all of the…
ANS: b. Left brace.
2: Every Java application is composed…
ANS c. public class declaration
22 terms
Chapter 3 Java Vocab
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
103 terms
Java_Level_3
What is a transient variable ?
Which containers use a border Layout a…
Why do threads block on I/O ?
How are Observer and Observable used?
A transient variable is a variable that may not be serialized.
The Window , Frame and Dialog classes use a border layout as…
Threads block on I/O (that is enters the waiting state) so th…
Objects that subclass the Observable class maintain a list of…
What is a transient variable ?
A transient variable is a variable that may not be serialized.
Which containers use a border Layout a…
The Window , Frame and Dialog classes use a border layout as…
27 terms
CSE3 Java
Identifier (variable) rules
3 basic data types
Numbers
Booleans
Begin with a letter... May be followed by letters, digits... Cannot…
Numbers... Booleans... Strings
No "units"... About 10 significant digits
Values: true or false... May initialize variables
Identifier (variable) rules
Begin with a letter... May be followed by letters, digits... Cannot…
3 basic data types
Numbers... Booleans... Strings
12 terms
JavaScript Functions 3
function gloop(num){... if(num > 10) {... r…
function myTest(val){... if(val > 5){... r…
function tree(cherry){... if(cherry > 15)…
function myTest(val){... if(val > 10) {…
"10 or Less"
"5 or Smaller"
"Between 5 and 15"
"Between 5 and 10"
function gloop(num){... if(num > 10) {... r…
"10 or Less"
function myTest(val){... if(val > 5){... r…
"5 or Smaller"
11 terms
Java Chapter 3
Instantiation
Dot Operator
Constructor
Aliases
Creating an object using the new operator.
What we use to access an instantiated object's methods.
Special method that has the same name as its class.
Two names that refer to the same object.
Instantiation
Creating an object using the new operator.
Dot Operator
What we use to access an instantiated object's methods.
11 terms
Java Chapter 3
Integrated Development Environment (IDE)
Eclipse IDE
Current Eclipse IDE
Workspace
help automate writing, building, and running of code
created by IBM in 1990s, free, open-source, constantly revise…
4.3, Eclipse Kepler
root directory under which you can store one or more Java pro…
Integrated Development Environment (IDE)
help automate writing, building, and running of code
Eclipse IDE
created by IBM in 1990s, free, open-source, constantly revise…
8 terms
Java 3 - Quiz 1
Invokes itself
True
True
False
A recursive method is one that:
True or False. A method definition that includes a call to it…
True or False. When a recursive call is encountered, computat…
True or False. A base case must include a recursive call.
Invokes itself
A recursive method is one that:
True
True or False. A method definition that includes a call to it…
1 of 10