Java programming tutorial for beginners
The aim of this and the following pages is to teach you how to program
Java, assuming you've done little or no programming in the past. Before you proceed
with this tutorial, you should probably read through the guide to getting started with Java: that guide will tell you how to install the necessary software
you need to program in Java. Especially if you're a complete beginner, you should
make sure you've followed the getting started guide before starting on this tutorial,
as it takes you through the mechanics of using the Java development tools.
(An exception might be if you are working with a programming tutor who has
taken you through these mechanics, or shown you a different tool than the one
that we explain.)
In this tutorial, we're going to concentrate mainly on the
actual Java programming language, not on the mechanics of using the tools.
As you read through the tutorial, you'll frequently see example program
snippets. In general, you should try running them, and altering them slightly to
see how your changes affect how they run. To see how to run them, see
the page on running your
first line of Java— you essentially follow this procedure, but insert
several lines as necessary.
The topics currently covered in this tutorial are as follows. They're
generally designed to
be read in order and link on from one another:
If you enjoy this Java programming article, please share with friends and colleagues. Follow the author on Twitter for the latest news and rants.
Editorial page content written by Neil Coffey. Copyright © Javamex UK 2021. All rights reserved.