CSE 142 Chapter Notes - Chapter 1: Decimal Mark, Scientific Notation, Data Type
oliveherring648 and 18 others unlocked
32
CSE 142 Full Course Notes
Verified Note
32 documents
Document Summary
Everything you manipulate in java will be of a certain type, and you will constantly find youself telling java what types of data to use. Data type: a name of data values that are all related, as in type int in java, which is used to rep integer values. There are two types of data: primitive data and objects. 8 types of primitive data: boolean, byte, char, double, float, int, long, and short. Boolean, char, double, and int are considered fundamental: other types exist for programs with special req. Int = integers(whole numbers: double = real numbers (includes decimals, char = single characters (ie: a, x !, boolean = logic values (true, false. A simple value or a set of operations that produce a value. Evaluation: the process of obtaining the value of an expression. Operator: a special symbolthat is used to indicate an operation to be performed on one or more values (ex: + - * /)