Introduction

Declarations are basic to writing any program in Java. You must know how to declare classes, interfaces, variables, methods, and constructors to be a Java programmer. Although you are probably familiar with most basic declarations, you might not have encountered a few things, or you might have forgotten them. This chapter will fill in any gaps in your knowledge. It covers variable and method declarations and the use of modifiers in these declarations. Class, constructor, and interface declarations are reviewed in Chapter 6.

Get Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams 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.