Uploaded by Vansh Tolani

APCS Unit 1 - Primitive Types Review - Ajay Gandecha (1)

advertisement
UNIT
1
Primitive
Types
Store data
Variable
type
f
random
RAM
in
aces Assignat operator
f Semicolon
int
value
name
b
camelCase
ex
8
m
12 I
access
memory
f
6.0
Boolean
y
true Hello
int
Integer
whole number
Double
Number with decimal places double
Booleae
True 1 false
boolean
string
Text values
Etring capital
String
f
Itu
types
r
type
data
Example
int myInteger
double
boolean
myDouble
isAwesome
String myName
Constant
Variable
8
7.6
true
Ajay
whose
value
cannot be
variable initialization
final type
Ex
name
final
value
int hours InADay
24
charged
eg
Long
stores
bigger numbers
Download