CSCI 1301 Lecture Notes - Lecture 3: Pariah Dog, Increment And Decrement Operators, Double You
Document Summary
There are only 8 primitive data types in java: For example, both byte and int store whole numbers. We know exactly how many bytes are used to store a short and what it can represent. If the possible values for your data fall within the range of a short, then using a short uses less memory (more efficient). Also, it allows errors to be caught by the compiler it prevents us from adding apples and oranges (or int and boolean values); The unique numerical identifier associated with each tweet exceeded the limit of 32-bit signed integers. Variable: int x = 3; //