Get full access to Java Illuminated, 4th Edition and 60K+ other titles, with a free 10-day trial of O'Reilly.
There are also live events, courses curated by job role, and more.
Programming Building Blocks—Java Basics
2.1 Java Application Structure
2.2 Data Types, Variables, and Constants
2.2.1 Declaring Variables
2.2.2 Integer Data Types
2.2.3 Floating-Point Data Types
2.2.4 Character Data Type
2.2.5 Boolean Data Type
2.2.6 The Assignment Operator, Initial Values, and Literals
2.2.7 String Literals and Escape Sequences
2.3 Expressions and Arithmetic Operators
2.3.1 The Assignment Operator and Expressions
2.3.2 Arithmetic Operators
2.3.3 Operator Precedence
2.3.4 Programming Activity 1: Converting Inches to Centimeters
2.3.5 Integer Division and Modulus
2.3.6 Division by Zero
2.3.7 Mixed-Type Arithmetic and Type Casting
2.3.8 Shortcut Operators
2.4 Programming Activity ...
Get Java Illuminated, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.
Get Mark Richards’s Software Architecture Patterns ebook to better understand how to design components—and how they should interact.
Dive in for free with a 10-day trial of the O’Reilly learning platform—then explore all the other resources our members count on to build skills and solve problems every day.