Getting Started with Java – A Beginner's Guide

1. Introduction
Welcome to The Learning Loop! This is my personal space to share what I’m learning as I dive into the world of programming, ethical hacking, AI, and more.
Right now, I’m starting with Java a powerful, beginner-friendly language used in web development, Android apps, and enterprise systems. Whether you’re starting out like me or just brushing up, this post will help you take your first step.
2. Why I Chose Java
I chose Java because:
It’s beginner-friendly but powerful
It teaches strong programming fundamentals
It’s widely used in the real world (banks, apps, games, etc.)
It’s the foundation for learning other tech fields like Android development and backend systems
This blog will follow my Java journey from the very basics to real-world projects shared step by step.
3. What You Need to Get Started
To follow along, you’ll need:
A computer
Internet connection
A little patience 😄
Let’s install Java and VS Code.
📥 Install Java JDK
Java JDK (Java Development Kit) is what lets your computer run and compile Java code.
Go to: https://www.oracle.com/java/technologies/javase-downloads.html
Download the latest version for your OS (Windows/macOS/Linux)
Run the installer and follow the steps
After installation, open Command Prompt (or Terminal) and type:
nginxCopyEditjava -version
If it shows a version, Java is installed!
💻 Set Up VS Code (Editor)
Go to: https://code.visualstudio.com/
Download and install VS Code
Open VS Code, go to Extensions (Ctrl+Shift+X), and install:
Extension Pack for Java
(by Microsoft)
This gives you everything you need: compiler, IntelliSense, debugger, etc.
4. Your First Java Program
Let’s test that everything works.
Create a folder on your desktop:
JavaPractice
Inside it, create a file:
HelloWorld.java
Paste this code:
javaCopyEditpublic class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}
In VS Code, open a terminal and type:
nginxCopyEditjavac HelloWorld.java java HelloWorld
You should see:
CopyEditHello, world!
You just wrote and ran your first Java program! 🎉
5. What’s Next on The Learning Loop
In the next posts, I’ll cover:
Understanding
public static void main
Variables and Data Types
Control Structures (if, switch, loops)
Object-Oriented Programming
Small Java projects
Each lesson will build on the last—and I’ll explain everything as if I’m teaching my past self.
6. Final Thoughts
Java might seem intimidating at first, but the key is showing up every day. That’s what The Learning Loop is all about: daily progress, clarity over complexity, and always moving forward one loop at a time.
📌 Up Next: Understanding public static void main
(link this when the next post is ready)
📚 Back to Java Index (link to your Java roadmap later)
Subscribe to my newsletter
Read articles from Janushan Alakendran directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
