Let's get started with a Microservice Architecture with Spring Cloud:
Get Started with Java
Last updated: September 14, 2019
Java is one of the most popular programming languages, often used for building web and enterprise scale applications. This collection of tutorials will help you get started with the basic concepts in Java.
If you are already familiar with the fundamentals, check out the larger Java guide here: Java Tutorial which goes into more detail with each aspect of the language.
Java Language Basics
Before learning about classes and objects, let’s start with the basic syntax of the language.
-
Introduction to Basic Syntax in Java (popular)
-
Introduction to Java Primitives (popular)
-
Java main() Method Explained
-
Control Structures in Java (popular)
-
A Guide to Java Loops
-
Guide to Java Packages (popular)
-
Pass-By-Value as a Parameter Passing Mechanism in Java (popular)
-
Varargs in Java (popular)
-
Guide to hashCode() in Java (popular)
-
Java Switch Statement (popular)
-
Guide to the Java forEach Loop (popular)
-
Immutable Objects in Java (popular)
-
A Guide to Java Modularity (popular)
Java OOP
Next, let’s dive into the world of object-oriented programming, with practical Java examples.
-
Java Classes and Objects
-
Concrete Class in Java
-
Access Modifiers in Java (popular)
-
A Guide to Constructors in Java
-
A Guide to Creating Objects in Java
-
Abstract Classes in Java
-
Java Interfaces (popular)
-
Guide to Inheritance in Java
-
Inheritance and Composition (Is-a vs Has-a relationship) in Java
-
Method Overloading and Overriding in Java
-
Composition, Aggregation, and Association in Java (popular)
-
Guide to the this Java Keyword
-
Guide to the super Java Keyword
-
A Guide to the Static Keyword in Java (popular)
-
The "final" Keyword in Java (popular)
-
Java Record Keyword (popular)
-
A Guide to Java Enums (popular)
-
Guide To Java Optional (popular)
-
Comparing Objects in Java (popular)
-
Java equals() and hashCode() Contracts (popular)
-
Functional Interfaces in Java (popular)
-
Unnamed Classes and Instance Main Methods in Java
-
Callback Functions in Java (popular)
-
Pattern Matching for Switch (popular)
-
Sealed Classes and Interfaces in Java (popular)
-
Functional Programming in Java (popular)
-
The transient Keyword in Java (popular)
-
Java instanceof Operator (popular)
-
How to Make a Deep Copy of an Object in Java (popular)
-
Object Type Casting in Java (popular)
-
Static and Default Methods in Interfaces in Java (popular)
-
Guide to Java Reflection (popular)
Java Strings
Strings are a common data type in Java, representing text. Let’s have a look at how to create and use String objects.
-
All About String in Java (popular) (Series)
-
Why String Is Immutable in Java? (popular)
-
Comparing Strings in Java (popular)
-
Java String Conversions
-
Java toString() Method
Java Exceptions
Exceptions are abnormal behaviors during the execution of a program. Let’s understand what Java exceptions are and how they can help us write less error-prone code.
Java Arrays
It’s time to have a look at our first data structure in Java – arrays.
Java Collections
A more complex type of data structure are collections, which, compared to arrays, have a dynamic size.
-
Guide to the Java ArrayList (popular)
-
A Guide to the Java LinkedList
-
Guide to the Diamond Operator in Java
-
Comparator and Comparable in Java (popular)
-
The Basics of Java Generics (popular)
-
A Guide to HashSet in Java
-
A Guide to Java HashMap (popular)
-
Initialize a HashMap in Java (popular)
-
A Guide to Iterator in Java
-
Converting Between an Array and a List in Java (popular)
Java Streams
Finally, we get to Java Streams – which are not data structures, but wrappers around data sources and allow us to process data more efficiently.
-
Introduction to Java Streams (popular)
-
The Java Stream API Tutorial (popular)
-
Functional Interfaces in Java (popular)
-
Guide to Java Collectors (popular)
-
Java Stream Filter with Lambda Expression (popular)
Java IO
Look at ways to interact with files and other data input/output methods in Java.
Java Development Environment
It’s important to understand the fundamentals of how the Java Virtual Machine and other development tools work.
Of course, there’s a lot more to learn about Java programming, and the development tools and APIs available are changing every day. But with a strong foundation of the basic concepts, you can jump in to building something and always continue learning.
For more tutorials and examples of problem-solving in Java, also have a look at the Java category on the site.
















