Chapter 2 of 'Building Java Programs' covers primitive data types, their operations, and variable declaration, including examples of integer division and casting. It introduces for loops, explaining their syntax, structure, and nested loops. The chapter also includes details on operator precedence and shorthand expressions for variable assignment.