epubjs
Version:
Render ePub documents in the browser, across many devices
25 lines (24 loc) • 2.49 kB
HTML
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Chapter 4. The Java Language</title><link rel="stylesheet" href="core.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"/></head><body><div class="chapter" title="Chapter 4. The Java Language"><div class="titlepage"><div><div><h1 class="title"><a id="learnjava3-CHP-4"/>Chapter 4. The Java Language</h1></div></div></div><p><a id="I_indexterm4_id646942" class="indexterm"/>This chapter begins our introduction to the Java language
syntax. Because readers come to this book with different levels of
programming experience, it is difficult to set the right level for all
audiences. We have tried to strike a balance between giving a thorough tour
of the language syntax for beginners and providing enough background
information so that a more experienced reader can quickly gauge the
differences between Java and other languages. Since Java’s syntax is derived
from C, we make some comparisons to features of that language, but no prior
knowledge of C is necessary. We spend more time on aspects of Java that are
different from other languages and less on elemental programming concepts.
For example, we’ll take a close look at arrays in Java because they are
significantly different from those in other languages. We won’t, on the
other hand, spend a lot of time explaining basic language constructs such as
loops and control structures. Chapters <a class="xref" href="ch05.html" title="Chapter 5. Objects in Java">5</a> through <a class="xref" href="ch07.html" title="Chapter 7. Working with Objects and Classes">7</a> will build on this chapter by talking
about Java’s object-oriented side and complete the discussion of the core
language. <a class="xref" href="ch08.html" title="Chapter 8. Generics">Chapter 8</a> discusses generics, a feature
that enhances the way types work in the Java language, allowing you to write
certain kinds of classes more flexibly and safely. After that, we dive into
the Java APIs and see what we can do with the language. The rest of this
book is filled with concise examples that do useful things and if you are
left with any questions after these introductory chapters, we hope they’ll
be answered as you look at the code.</p></div></body></html>