Introduction

Classes are the core concept of the Java language. Because all programming in Java consists of defining classes, it is essential to understand how to create a class. Points that are likely to arise in exam questions include the visibility of methods and variables in a class and other program elements as controlled by access modifier keywords. You should also clearly understand the differences between instance variables, static variables, and local variables declared inside code blocks.

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.