JavaWorld, from IDG

Java

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

Scoring the winning points at a basketball game
Java / coffee

Russian dolls

Inheritance in Java, Part 2: Object and its methods

The more familiar you are with Object and its methods, the more you can do with your Java programs.

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.

Comparing apples and oranges.

Java inheritance vs. composition: How to choose

Compare inheritance and composition, the two fundamental ways to relate Java classes, then practice debugging ClassCastExceptions in Java inheritance.

shutterstock 560673883 coffee poured into white coffee cup coffee beans java

Azul CEO sees Java’s AI future as bright

Exec Scott Sellers says Java will eventually compete with Python in the AI space, and says removing sun.misc.Unsafe from Java is long overdue.

group mentor discuss advise coffee at table friends advisory board collaborate by joshua ness via u

JDK 23: The new features in Java 23

Plans for Java 23, due in September, include previews of module import declarations, stream gatherers, structured concurrency, and scoped values.

3 stars, award, dark background

Why enterprises rely on JavaScript, Python, and Java

Three programming languages have remained the top choices for developers for nearly 30 years, and will for the foreseeable future.

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

Classes and objects in Java

Here's what you need to know about making classes, fields, methods, constructors, and objects work together in your Java applications.

Hello, world! Programming, programmer

Class and object initialization in Java

Here's everything you need to know about initializing Java classes and objects before executing them in the JVM.

Sorting circles, squares, and triangles by shape.

Sorting Java objects with Comparable and Comparator

Do you need to know how to sort Java objects in a collection, array, or map? Here's how to use the Comparable and Comparator interfaces and avoid ClassCastExceptions.

IBM logo on building

IBM previews watsonx Code Assistant for Enterprise Java Applications

The generative AI-based code assistant is aimed at accelerating Java application lifecycle with capabilities, such as code generation, code explanation, and test generation.

Comparison, comparing: two objects balanced on a scale.

Comparing Java objects with equals() and hashcode()

What is the contract between equals() and hashcode()? Learn how these methods work together when comparing objects in Java.

Oracle headquarters

Oracle extends support for Java 11, Java on Solaris

Oracle will support JDK 11 including JDK 11 on Solaris through at least January 2032, the company confirmed in its Java SE Spring 2024 roadmap update.

date, time, calendar, hourglass

Replace Calendar with LocalDate in Java programs

Java's Calendar class had its day, but the newer LocalDate class does much more. Here are seven ways to use LocalDate in your Java programs.

Java sign

Java 17 is most-used LTS version of Java – report

More than 35% of Java applications are using Java 17 in production, up from 9% in 2023, according to New Relic’s 2024 State of the Java Ecosystem report.

shutterstock 1710798856 airplane cockpit instrument panel

Oracle JDK Mission Control 9 adds dark theme, configurable JVM browser

Tool kit for monitoring, managing, profiling, and troubleshooting Java applications now requires JDK 17 or later to run.

Rescue, repair, life preserver in midair

Java proposal would add exception case to switch

Allowing developers to handle an exception from the selector in switch with a case in the switch block would make switch more usable for pattern matching, the proposal says.

Java proposal would streamline module package imports

Allowing entire modules to be imported all at once would eliminate tedious typing and simplify the reuse of modular libraries in Java.

Knockout, sucker punch. Red boxing glove on green background.

Java services hit hardest by third-party vulnerabilities, report says

State of DevSecOps report finds 90% of Java services susceptible to vulnerabilities in third-party libraries.

Load More