Java Tutorial 8: Starting Threads and Using Anonymous Classes

A thread is a separate process on your computer; you can run multiple threads all at the same time. The way the CPU (central processing unit) actually handles this is usually by switching rapidly betw....

Java Tutorial 7: Exceptions

Exceptions in Java are used to deal with problems that arise during the execution of your program. They should only be used to deal with unexpected situations; when you expect a certain problem to ari....

Java Tutorial 6: Useful Standard Methods, Access Modifiers and Abstract Classes

In the previous tutorial in this series, we looked at inheritance in Java. In this tutorial we continue with inheritance, plus we'll look at some standard methods in Java and a few other interesting....

Java Tutorial 5: Inheritance and Polymorphism

Inheritance and polymorphism: two big words to strike fear into the heart of any new Java programmer. However, the concepts that they refer to are not that complex. Inheritance in Java Let's take a lo....

Java Tutorial 4: Interfaces, and a Basic Swing App

The following code illustrates a basic Swing application. Swing is the standard GUI (Graphical User Interface) API for creating desktop applications with Java.Note, aside from a bunch of unfamiliar cl....

Java Tutorial 3: Arrays, Methods, Loops and Conditionals

This seems like a good point to mention that you can find documentation for all the built-in classes in Java here: Java 7 API docs . Creating and Initializing Arrays in Java You can declare an array....

Java Tutorial 2: Creating a Basic Class

In the first tutorial , we saw how you can create a basic java program, and we discussed the....

Java Tutorial 1: Beginning Java

Downloads and Getting Started To start developing Java software, the first thing to do is to download the latest JDK (Java Development Kit). You can download the JDK here from Oracle.com. It's free....