Lesson 1Installing Java

Welcome to the world of learning Java. In this first lesson, we will set up everything needed to write Java programs. We will then write our first program together called “Hello, World!”

It is important to know that, by itself, Java code doesn't do anything. It is just text. To make it useful, we need to install the Java Development Kit (JDK). The JDK contains the compiler and other tools needed to create executable Java programs. After the JDK is installed, we will check the configuration by creating, compiling, and running the obligatory “Hello, World!” program.

THE JAVA UNIVERSE

Before we get into downloading and installing the Java tools and writing our first program, let's first take a look at the bigger picture: the Java universe, if you will. A little history will help to make sense of where Java is today.

The development of the Java language was led by James Gosling at Sun Microsystems. The initial development started in the early 1990s, and the language was originally called Oak. The first official ...

Get Job Ready Java 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.