O'Reilly logo

Java 7 for Absolute Beginners by Jay Bryant

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

C H A P T E R  2

Java Syntax

The syntax of any language is the rules that any speaker of the language follows so that other speakers of that language can understand. In other words, syntax is a set of rules that all the speakers of a language agree to follow so that they can communicate. If you violate the rules, people listening to you are either going to ask, “Huh? What?” or think you're being silly (which might be appropriate in some settings but will often cause a problem).

Computer languages work in much the same way, except that they're never spoken (though I won't be surprised to see, or should I say hear, oral programming languages someday). If you decide to do your own thing, don't be surprised when your computer doesn't do what you ...

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