Summary

Anyone who pops open a set of matryoska dolls has to be a bit disappointed to reach the smallest doll in the group. Ideally, advances in microengineering should enable Russian artisans to create ever-smaller and smaller dolls, until someone reaches the subatomic threshold and is declared the winner.

You have reached Java's smallest nesting doll today, but it shouldn't be a letdown. Using statements and expressions enables you to begin building effective methods, which make effective objects and classes possible.

Today you learned about creating variables and assigning values to them; using literals to represent numeric, character, and string values; and working with operators. Tomorrow you put these skills to use as you develop objects ...

Get Sams Teach Yourself Java 2 in 21 Days, Second 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.