Java

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

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.

apples oranges slices mixture puzzle balance opposites fruit  savatore gersace flickr

Oracle steers GraalVM to the enterprise

GraalVM Enterprise brings performance and security extras to the shared runtime supporting JVM languages, JavaScript, and native code

coffee cup - coffee beans - Java

Google: Use Kotlin for new Android apps

At the Google I/O conference, Google announced that Android development will become increasingly ‘Kotlin-first’

Exploding binary numbers

Machine learning algorithms explained

Machine learning uses algorithms to turn a data set into a predictive model. Which algorithm works best depends on the problem

Matryoshka /Russian nesting dolls > inheritance / sequencing / pattern

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

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

Classes and objects in Java

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

Man with sad face on chalkboard

Oracle: Eclipse can’t use Java EE trademarks

But Oracle ‘remains committed’ to working with the Jakarta EE working group and Jakarta EE specification process

male arm holding empty coffee cup with striped sweater

OpenJDK proposal addresses scarcity of keywords for new features

Java enhancement proposal embraces hyphenated keywords for the sake of compatibility and readability

speech bubble

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

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

waitress server self serve coffee xaas

OpenJDK proposal takes aim at verbose Java syntax

Records and sealed types would provide more compact syntax for declaring classes and a way to restrict subclasses, respectively

Conceptual image of a digital circuit-board key amid binary code.
Tip

Java tip: Composite keys in JPA and Hibernate

Use embeddable objects to join two primary keys into one composite key

Lineup of anthropomorphic nuts, illustrating polymorphism.
Tip

Java tip: Inheritance relationships in JPA and Hibernate

Learn four ways to manage inheritance relationships and support polymorphic querying in Java ORM

JavaWorld > Persistence [series] > data blocks / structure / database / data center

Java persistence with JPA and Hibernate, Part 2: Many-to-many relationships

Many-to-many relationships and cascade type strategies in JPA and Hibernate

language / alphabet / letters / characters

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.

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

time / clock / history / coffee / java

Red Hat to maintain OpenJDK 8 and OpenJDK 11

Red Hat will be providing bug fixes and security patches for the two older releases of the JDK, taking over from Oracle

JavaWorld > Persistence [series] > data / data center / database / server

Java persistence with JPA and Hibernate, Part 1: Entities and relationships

Get started modeling entities and relationships for Java data persistence, using an example application based on Java 8 with Hibernate 5.3.6

google cloud services

Google Cloud Run runs stateless containers, serverlessly

Google Cloud Run lets you deploy stateless, HTTP-invocable containers to a managed compute service or to Google Kubernetes Engine

Load More