Listen to this post
Learn Java for fun and profit! Java has been around a long time; on May 23, 1995, Java was born. It’s a mature language with a deep library bench that allows a programmer to create anything they would ever want to build. Java software runs on Google’s Android, macOS, Windows, Linux, game consoles, and scientific supercomputers. There are plentiful resources for learning Java, and now we have another.
Primary Use Cases
I could spend a long time writing many use cases like these. Instead, I’ll list a few real-world use cases I’ve encountered.
- REST Services powered by the Spring Boot framework
- Running best of class IDEs like all of the Jetbrains products
- Creation of robust command-line utilities
- Management of observability data within distributed systems with OpenTelemetry
- Building apps on your Android phone, whether it’s a Samsung or a Pixel
The Java Virtual Machine (JVM) is a Java feature that sets it apart from other programming platforms. Java’s primary purpose is to Write once, run anywhere, so you can learn one language and apply it to any device.
In 1995, the idea of a single platform to rule them all was laughable, and even today, it’s a remarkable feat. Installing the JVM is easy and getting started with it is free.
Any tutorial you pick up to learn java will start with instructions on how to install it. In most cases, instructors will give you the standard instruction to download it from oracle.com and manually install the binary. My recommendation is to skip all of that and install the OpenJDK, which doesn’t come with any Oracle baggage.
If you’re using macOS, I recommend installing jenv to manage various versions of Java. Jenv allows you to add a list of installed JVMs and easily set one of them as active.
brew install openjdk
Once Java is installed, run this command to verify success.
$ java -version openjdk version "1.8.0_242" OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_242-b08) OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.242-b08, mixed mode)
I won’t rehash the concepts of Java in this article, but I will summarize a few fundamentals you will need to use Java effectively.
Object Oriented Programming
While Java has functional programming built into it, the foundation of Java is OOP. Learning the fundamentals of OOP will help you learn and use Java effectively.
Keywords, variables, identifiers, data types, literals, operators, arrays, strings, control statements, and other language fundamentals will reinforce your ability to learn and use Java. Memorizing and understanding these concepts is like learning the alphabet, colors, days of the week, and other fundamental parts of a spoken language. It’s worthwhile to ground yourself with these concepts when you begin learning Java.
The Command Line
While it might be possible to learn java without learning how to use the command line, I recommend not doing that. The command line is a great place to start learning basic Java concepts. Creating a Spring Boot Console Application that takes inputs and generates outputs will allow you to practice in a focused manner with fewer distractions.
The Java programming language makes heavy use of design patterns to accelerate your problem-solving efforts. Choosing the right design pattern will set you up for success.
Rome wasn’t built in a day. Learning Java is a continuous journey full of twists and turns down its multi-threading features and concurrency frameworks. From having fun with deciding the best web container framework to picking the best Java frameworks to use. You’ll be busy keeping up with the Java Joneses for decades to stay relevant like any most healthy software development ecosystems.
A key takeaway when learning Java is that choice overload can happen. Choices are one of the reasons Java is so popular. Learning Java is like having your own restaurant to cook your food at home. It gives you all the ingredients you need to make the perfect recipe and the room to do it. After all, what programmer wouldn’t want a highly versatile tool like Java in their tool belt?
Have some ☕️, and enjoy your Java learning journey!
Learn Java – Beyond the Basics
- Learn Java (LinkedIn)
- Java Programming Masterclass for Software Developers (Udemy)
- Getting Started with Programming in Java (Pluralsight)
- Java Fundamentals: Generics (PluralSight)
- Reactive Programming in Java 12 with RxJava 2 (Pluralsight)