13 April 2021

Last Time

Useful Viewing

byte8 bit signed integer
short16 bit signed integer
int32 bit signed integer
long64 bit signed integer
float32 bit IEEE 754 single precisions floating-point number
double64 bit IEEE 754 double-precision floating-point number
booleantrue/false
charunicode character
TypeDescription

Differences

Things that are the same

Relational Operators and Primitives

<, <=, >, >= only work for primitives.

Primitives point directly at their datum. x = 5


    x 0000000000000000000000000000000101

Object Type vs. Primitive

== and != are OK for all data.

Objects have three properties.

The Case of String

The API Guide

The Java API Guide is an on-line searchable comprehensive encyclopaedia of core Java. You will see that this is extremely useful. We will use it to learn about Java Strings. Strings are immutible character sequences, just as they are in Python. You will see cosmetic differences in how you handle them.