Table of Contents

Cover

Contents

Chapter 1: Introducing Java

Why Learn Java?

Setting the Goals

The Life Cycle of a Java Program

JDK and JRE

Java SE and EE

Downloading and Installing JDK in Windows

Your First Java Program: Hello World

Try It

Chapter 2: Eclipse IDE

Introducing Eclipse IDE

Downloading and Installing Eclipse

Creating Hello Project in Eclipse

Creating the HelloWorld Class in Eclipse

Java Packages

Completing Code Generation

Try It

Chapter 3: Object-Oriented Programming

Classes and Objects

Variables, Constants, and Data Types

Variable Scope

Wrappers, Autoboxing, and Unboxing

Program Comments

Try It

Chapter 4: Class Methods

Method Arguments

Method Overloading

Constructors

The Keyword super

The Keyword this

Passing by Value or by Reference

Variable Scopes

The Keyword static

Try It

Chapter 5: Back to Java Basics

Arrays

Loops

Debugging Java Programs

More about if and switch Statements

Command-Line Arguments

Try It

Chapter 6: Packages, Interfaces, and Encapsulation

Java Packages

Encapsulation

The Keyword final

Interfaces

Casting

Try It

Chapter 7: Programming with Abstract Classes and Interfaces

Abstract Classes

Polymorphism

Interfaces versus Abstract Classes

Try It

Chapter 8: Introducing the Graphic User Interface

Swing Basics

Layout Managers

Swing GUI Builders

Try It

Chapter 9: Event Handling in UI

Introduction to Event Listeners

Teaching the Calculator to Calculate

More Swing Listeners

How to Use Adapters

Inner Classes

Try It

Chapter 10: Introduction to Java Applets ...

Get Java® Programming 24-Hour Trainer 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.