O'Reilly logo

The Java® Tutorial: A Short Course on the Basics, Fifth Edition by Raymond Gallardo, Sowmya Kannan, Sharon Biocca Zakhour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3. Language Basics

You’ve already learned that objects store their state in fields. However, the Java programming language also uses the term variable as well. The first section of this chapter discusses this relationship, plus variable naming rules and conventions, basic data types (primitive types, character strings, and arrays), default values, and literals.

The second section describes the operators of the Java programming language. It presents the most commonly used operators first and the less common operators last. Each discussion includes code samples that you can compile and run.

Operators may be used in building expressions, which compute ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required