Business Administration 1220E Study Guide - Final Guide: Pseudorandom Number Generator, Static Variable, Enumerated Type

59 views3 pages
1
Summary of Key Concepts
Chapter 2 Data and Expressions
The print and println methods represent two services provided by the System.out object.
An escape sequence can be used to represent a character that would otherwise cause
compilation problems.
A variable is a name for a memory location used to hold a value of a particular data type.
Accessing data leaves it intact in memory, but an assignment statement overwrites the old data.
We cannot assign a value of one type to a variable of an incompatible type.
Constants hold a particular value for the duration of their existence.
Java has two kinds of numeric values: integer and floating point. There are four integer data
types and two floating point data types.
Java uses the 16-bit Unicode character set to represent character data.
Expressions are combinations of operators and operands used to perform a calculation.
Java follows a well-defined set of precedence rules that governs the order in which operators
will be evaluated in an expression.
Narrowing conversions should be avoided because they can lose information.
The Scanner class provides methods for reading input of various types from various sources.
Chapter 3 Using Classes and Objects
The new operator returns a reference to a newly created object.
Multiple reference variables can refer to the same object.
Usually a method is executed on a particular object, which affects the results.
The Java standard class library is organized into packages.
All classes of the java.lang package are automatically imported for every program.
A pseudorandom number generator performs a complex calculation to create the illusion of
randomness.
All methods of the Math class are static, meaning they are invoked through the class name.
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows page 1 of the document.
Unlock all 3 pages and 3 million more documents.

Already have an account? Log in
hwpark22 and 40161 others unlocked
Business Administration 1220E Full Course Notes
40
Business Administration 1220E Full Course Notes
Verified Note
40 documents

Document Summary

The print and println methods represent two services provided by the system. out object. An escape sequence can be used to represent a character that would otherwise cause compilation problems. A variable is a name for a memory location used to hold a value of a particular data type. Accessing data leaves it intact in memory, but an assignment statement overwrites the old data. We cannot assign a value of one type to a variable of an incompatible type. Constants hold a particular value for the duration of their existence. Java has two kinds of numeric values: integer and floating point. There are four integer data types and two floating point data types. Java uses the 16-bit unicode character set to represent character data. Expressions are combinations of operators and operands used to perform a calculation. Java follows a well-defined set of precedence rules that governs the order in which operators will be evaluated in an expression.