Introduction to Java.
Introduction to Java.
Photo by: Matthew Henry

Java is a general purpose, object-oriented programming language.

It was created in 1995 by James Gosling.  It is owned by Oracle and more than 3 billion devices run Java!

Java has a wide range of applications such as:

  • Mobile applications
  • Desktop applications
  • Web applications
  • Games
  • Database connection

Companies that use Java include:

  • NASA
  • Netflix
  • Amazon
  • Minecraft
  • LinkedIn



Your first Java program.
Your first Java program.
Photo by: Sarah Pflug

Creating your first Java program.

Steps to create a Java Program:

    1. Create a Java Project and module
    2. Create a package
    3. Create a class
    4. Write a program


In this activity you will install Java or you can use the online editor then create a "Hello World" program.

To install Java watch the video in videos section How to Intsall Java on Windows 10 which demonstrates step by step how to install Java on your device.

You will need to read through the attached "Introduction to JAVA" presentation in the documents section.

A Java online editor is available if you decide not to download Java: Java Online Editor

Before you start watch the video in the videos section Java Tutorial for Beginners, in the links section you can also read through Java for Beginners which will explain and demonstrate how to get started using Java.


  1. Follow slides 5-9 if you decide to install Java, if you decide to install Java read through Eclipse Installer in the links section which also has download links.
  2. Follow slide 11 to create a Java project.
  3. Slide 12 demonstrates how to name your project and create a module.
  4. Slide 13 demonstrates how to create a package.
  5. Next you will need to create a class, instructions are on slides 14-16. Before you start read through the links Java Classes and Java Modules in the Links section.
  6. Next you need to write the program which is demonstrated on slides 14-20.
  7. Now we need to run the program to ensure there are no errors, you will need to click the green button as shown on slide 21.
  8. Can you expand the code to print out Java? Read through slides 22-23 to complete the extension activity.



By the end of this resource, you should have a working HelloWorld class that prints out a message to the user.

Check you have met the following Learning Outcomes:

  • Download Eclipse and Java.
  • Learnt how to make a new java project, package and class.
  • Learnt how to write a basic program in Java using System.out.println().


Next Steps:

You should now move onto GUI calculator in Java to enhance skills learnt in this inroduction and cross reference to skills learnt using Python.

You can also read through 10 Best Java Projects for Beginners which is found in the links section and develop what you have learnt.

Learning Objectives

Learning Objectives

  • Download Eclipse and Java.
  • Learn how to make a new java project, package and class.
  • Learn how to write a basic program in Java using System.out.println()