Upgrade to remove ads
Programming Fundamentals: Ch. 2
Terms in this set (18)
represents a memory location used to store data; "int <variable> = <value>; declares a new variable
stores the right-side item's current values to the left-side variable (i.e. variable Name = expression;)
a name created by a programmer for an item like a variable or method. must be a sequence of letters and must start with a letter (and not be a reserved word or start with a number)
a combination of items, like variables, literals, and operators, that evaluates to a value
a symbol for a built-in language calculation (i.e. arithmetic operators)
(), then unary -, then * or modulo, then + -, then left to right
provide shorthand way to update a variable (+=, *=, etc.)
a variable that stores a floating-point number
a number with a fractional part, even if that fraction is 0 (i.e. it has a decimal point)
a text parser that can read numbers, words, or phrases from an input source such as the keyboard. Create a scanner object via "Scanner scnr = new Scanner(System.in);" and then have variables equate input by "<variable> = scnr.nextInt();"
a list of statements that can be executed by referring to the method's name
an input value to a method that appears between parentheses (i.e. the areaSquare in "double areaSqaure = 49.0;")
provides methods of generating random numbers. Create random numbers by "Random randGen = new Random();" and then "System.out.println(randGen.nextInt());" To specify what range you want, use "System.out.println(randGen.nextInt(50) or (2-10);"
to create some random numbers with a pattern, use Random randGen = new Random(<number>);
application programming interface, aka Java class library. Contains infomration about how to use every prewritten Java class (similar to man pages). Java's class' documentation found here http://docs.oracle.com/javase/8/docs/api/
aka Troubleshooting, is the process of determining and fixing the cause of a problem in a computer program. A common predicted-problem testing approach is to insert print statements
Running a Java Application and correcting logic errors
After a program compiles with no syntax errors, you can execute it. However, just because a program compiles and executes, that does not mean the program is error free.
when the syntax of the program is correct and the program compiles but produces incorrect results when you execute it. is a type of run-time error
THIS SET IS OFTEN IN FOLDERS WITH...
Programming Fundamentals: Ch. 1
Programming Fundamentals: Ch. 3
YOU MIGHT ALSO LIKE...
Java ZyBooks Chapter 1 - 3
CS 200 UW Madison exam 1
CIS150 CH 2 - Programming Logic and Design
OTHER SETS BY THIS CREATOR
GRE Verbal Reasoning vocab
Quantum Computing: Basics
Swearing in Russian
Russian Flirting (and love expressions)