Friday, January 30, 2026


CPT307

Getting Started with Java and OOP: My Beginner Experience

When I first started working with Java, I’ll be honest, it was a little confusing at first. There are a lot of resources, a lot of links, and a lot of ways people say you should get started. From a beginner’s point of view, the biggest challenge was just understanding where to begin and what tools I actually needed.

My Experience Installing Java

Installing Java itself wasn’t difficult, but figuring out which download I actually needed took some time. I learned that to write and run Java programs, you need the Java Development Kit (JDK), not just Java by itself. I used the official Java resources to guide me through the process instead of trying to figure it out on my own.

Resources I found helpful:

These helped me understand what Java is used for and how to verify that everything was installed correctly by running a simple program.

Choosing an Editor (What Worked for Me)

Another decision I had to make was choosing an editor or IDE. I ended up using IntelliJ IDEA Community Edition, which made things much easier as a beginner. It handled a lot of the behind-the-scenes work, like compiling and running the program, so I could focus more on learning the basics.

Editor I used:

Learning Object-Oriented Programming Concepts

As I started learning Java, I was also introduced to object-oriented programming (OOP). At a high level, OOP is about organizing code in a way that makes it easier to understand and reuse. Instead of writing everything in one place, programs are built using objects that represent real-world ideas.

The four main OOP concepts I was introduced to are:

  • Encapsulation – keeping related information together and protected

  • Abstraction – focusing on what something does, not how it does it

  • Inheritance – reusing existing code to build new features

  • Polymorphism – allowing the same action to work in different ways

This resource helped explain those ideas in a beginner-friendly way:

Producing My First Java Program (Hello World)

Once Java was installed and IntelliJ IDEA was set up, I used the Getting Started tutorial from the official Java documentation to create my first Java program. The tutorial walks through a basic “Hello World” example, which helped me understand how a Java program is structured and how it runs.

Using that example as a reference, I created a simple console-based program and modified the output to display my name, as required by the assignment. Running the program in IntelliJ confirmed that Java was installed correctly and that the program executed successfully by printing the message to the console.



Final Thoughts

From my experience, learning Java as a beginner is less about memorizing everything and more about understanding the basics and knowing where to find good resources. Once I got Java installed, chose an IDE, and understood the idea behind object-oriented programming, things started to make more sense. I’m still learning, but this gave me a solid starting point and more confidence moving forward.

No comments:

Post a Comment

Learning Algorithms and Data Structures as a Beginner

Learning Algorithms and Data Structures as a Beginner When you first start learning to code, the main goal is usually to make your program...