Learn Java

Learn Java | News, how-tos, features, reviews, and videos

Interfaces in Java
Java 101: Class and object initialization

Blue Morpho Butterfly

Java 101: Java polymorphism and its types

Learn the four types of polymorphism in Java, then start using subtype polymorphism to execute different forms of the same Java method

Seven (7) colorful chalks on blackboard / primary colors / secondary colors

Java tip: Fields and methods in Java

Learn seven advanced techniques for working with fields and methods in Java, including recursion, method call chaining, pass-by-value arguments, and rules for calling methods

Matryoshka /Russian nesting dolls > inheritance / sequencing / hidden layers
Tip

Java tip: When to use composition vs inheritance

Inheritance is a valuable programming technique, but in some conditions it breaks encapsulation. Find out why composition is the vital alternative to inheritance, and learn when and how to use it in your Java programs.

Matryoshka /Russian nesting dolls > inheritance / sequencing / pattern

Java 101: Inheritance in Java, Part 2: Object and its methods

Get to know Java's Object superclass and its methods for duplicating, comparing, cleaning up, and scheduling Java objects

Matryoshka /Russian nesting doll > inheritance / sequencing / hidden layers

Java 101: Inheritance in Java, Part 1: The extends keyword

Use Java's extends keyword to derive a child class from a parent class, invoke parent class constructors and methods, override methods, and more

Java / binary code / gears / programming / coding / development

Java 101: Classes and objects in Java

Learn how to make classes, fields, methods, constructors, and objects work together in your Java applications.

speech bubble

Java 101: Loop, switch, or take a break? Deciding and iterating with Java statements

Learn how to use standby statements like for, while, if-else, and break, then get started with the new switch expressions in Java 12

question marks

Java 101: Evaluate Java expressions with operators

Everything you need to know about the Java operator types and using them to write and evaluate Java expressions in Java 12

language / alphabet / letters / characters

Java 101: Elementary Java language features

Learn three ways to document your code, then get started using identifiers, types, literals, and variables in Java 12

Plastic, magnetic letters in compartmented boxes.

Java 101: Learn Java from the ground up

If you're new to Java then you've come to the right place. Get an overview of the Java platform, then code your first application using Java 12 and the new Java Shell

JavaWorld > Persistence [series] > data blocks / data center / database / server traffic routing

What is JPA? Introduction to the Java Persistence API

Get to know the Java ORM standard for storing, accessing, and managing Java objects in a relational database

data conversion

Java XML and JSON: Document processing for Java SE, Part 2: JSON-B

Use the Java API for JSON Binding (JSON-B) to serialize and deserialize Java objects, arrays, and collections in Java SE

Javaworld > JVM / JDK / JRE explainer series

JVM, JDK, JRE: What's the difference?

Three indispensable Java platform components, and how they work together in your Java applications

transformation / conversion / data cubes shift from one color to another

Java XML and JSON: Document processing for Java SE, Part 1

Learn how to transform and convert XML and JSON documents with SAXON and Jackson

JavaWorld > Android Studio for Beginners [movile java package]

Tutorial series: Android Studio for beginners

A complete beginner's guide to Android Studio, from installing Android Studio to coding and debugging your first Android app. Includes source code for the example app

The start and finish line of the Inishowen 100 scenic drive [Ireland]

Java Challengers #6: Thread behavior in the JVM

The JVM does what it wants to do, so how can you predict the order of thread execution?

planning algorithms

Java Challengers #5: Sorting with Comparable and Comparator in Java

Comparable or Comparator? Choose the correct interface for the sorting algorithm you need

white blocks stacked containers misaligned alignment fragile falling apart flickr

Write a purely functional Bubble Sort application

Improve a classic, object-oriented sort application using Java's functional programming capabilities

Load More