Java
Java | News, how-tos, features, reviews, and videos
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.
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 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.
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.
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.
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.
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.
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 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 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.
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 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.
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 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.
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.
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.
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.