Introduction

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
Process
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.
Steps:
- 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.
- Follow slide 11 to create a Java project.
- Slide 12 demonstrates how to name your project and create a module.
- Slide 13 demonstrates how to create a package.
- 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.
- Next you need to write the program which is demonstrated on slides 14-20.
- 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.
- Can you expand the code to print out Java? Read through slides 22-23 to complete the extension activity.
Conclusion
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.
Resources
Click each section below to see all resources available.
Resources
Click each section below to see all resources available.
Links
Java For Beginners
https://www.codecademy.com/catalog/language/java?g_network=g&g_device=c&g_adid=518718855297&g_keyword=java%20for%20beginners&g_acctid=243-039-7011&g_adtype=search&g_adgroupid=102650135473&g_keywordid=kwd-504072395&g_campaign=UK+Language%3A+Basic+-+Exact&g_campaignid=10074198914&utm_id=t_kwd-50407239