Introduction

In this chapter, we review the basics of Java source code files: keywords and identifiers. Because Java borrows much of its syntax from C++, we will point out areas in which C++ programmers may go astray. We'll also cover the basics of Java variables, the behavior of Java primitive data types, and how Java handles arrays.

Although many commercial Java development environments exist, Sun Microsystems' Software Development Kit (SDK), previously known as the Java Development Kit (JDK) is the only one the Certified Java Programmer exam covers. Incidentally, we old-timers frequently use the term JDK, although Sun calls it the SDK most of the time.

Get Java 2™ Programmer Exam Cram™ 2 (Exam CX-310-035) 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.