Java Reference
In-Depth Information
chapter
1
primitive java
T he primary focus of this topic is problem-solving techniques that allow
the construction of sophisticated, time-efficient programs. Nearly all of the
material discussed is applicable in any programming language. Some would
argue that a broad pseudocode description of these techniques could suffice to
demonstrate concepts. However, we believe that working with live code is
vitally important.
There is no shortage of programming languages available. This text uses
Java, which is popular both academically and commercially. In the first four
chapters, we discuss the features of Java that are used throughout the topic.
Unused features and technicalities are not covered. Those looking for deeper
Java information will find it in the many Java topics that are available.
We begin by discussing the part of the language that mirrors a 1970s pro-
gramming language such as Pascal or C. This includes primitive types, basic oper-
ations, conditional and looping constructs, and the Java equivalent of functions.
In this chapter, we will see
Some of the basics of Java, including simple lexical elements
n
The Java primitive types, including some of the operations that
primitive-typed variables can perform
n
 
Search WWH ::




Custom Search