Hey Devs π,
Iβve recently decided to start learning Java, and I wanted to document my journey here on Dev.to β both to help others who might be starting and to keep track of my own progress. If you're also just getting started or thinking about it, I hope this helps!
π§ Why Java?
Java has been around for decades and continues to power everything from enterprise systems to Android apps. Some reasons I picked it:
- π Strong typing and structured syntax (great for learning fundamentals)
- π§© OOP (Object-Oriented Programming) is baked in
- πΌ It's widely used in enterprise applications
- π± Itβs the foundation of Android development
π What Iβve Learned So Far
β The Basics
I started with the classic Hello World example and moved on to variables and data types:
public class HelloWorld {
public static void main(String[] args) {
String name = "Nam";
int age = 20;
boolean isStudent = true;
System.out.println("Hello, " + name);
System.out.println("Age: " + age);
System.out.println("Is Student: " + isStudent);
}
}
Functions (a.k.a. Methods)
I learned how to write my own methods:
public static void greet(String name) {
System.out.println("Good morning, " + name + "!");
}
Then called them from the main method.
Loops
Loops are really useful β especially when working with lists or doing repetitive tasks.
for (int i = 0; i < 5; i++) {
System.out.println("Loop count: " + i);
}
π§ Tools I'm Using
- Java 11 (OpenJDK) β though Iβm learning about Java 21+ and its new features
- VS Code with the Java Extension Pack
- Terminal (on Ubuntu via WSL)
π§ Whatβs Next?
- Understand object-oriented concepts (classes, objects, inheritance, etc.)
- Explore file handling, exception handling, and collections
- Maybe try building a small console app!
π¬ Final Thoughts
Learning Java has been fun so far. The syntax is a bit strict compared to Python or JavaScript, but thatβs also teaching me to be more thoughtful and organized.
If youβre new to Java or learning it too β letβs connect! I'd love to hear how others are approaching it.
Thanks for reading!
Happy coding π¨βπ»π©βπ»
Top comments (0)