Learn about the unnamed classes and instance main methods in Java 21.
Search Results for: class declaration
Different Dependency Version Declarations in Gradle
When building with gradle we may wish to stay on the latest version of each of our dependencies. We look at a few ways we can achieve this.
Classpath vs. Modulepath in Java
Explore the distinction between the modulepath and classpath in Java.
Record vs. Final Class in Java
Explore the differences between records and final classes in Java.
JUnit 5 @Nested Test Classes
Learn about JUnit 5’s @Nested annotation.
Variable Instantiation on Declaration vs. on Constructor in Java
Learn that using either field declaration or constructor initialization is more of a preference.
List All the Classes Loaded in the JVM
Learn different techniques to list all classes loaded in the JVM
Finding All Classes in a Java Package
Learn how to find all classes in a Java package at runtime.
Using an Interface vs. Abstract Class in Java
Learn when to use an interface and when to use an abstract class in Java.
Java Class File Naming Conventions
Understand autogenerated class naming conventions in Java.
Sealed Classes and Interfaces in Java
Explore sealed classes and interfaces, a preview feature in Java SE 15, delivered in Java 17.
OCP Certification – Advanced Java Class Design
Learn some tips on common aspects of the OCP Certification exam.
Anonymous Classes in Java
Learn about Java anonymous classes.
Abstract Classes in Java
Learn how and when to use abstract classes as part of a class hierarchy in Java.
How to Find and Open a Class with Eclipse
Learn the quickest hotkeys and shortcuts to look up classes in Eclipse
Nested Classes in Java
A quick and to-the-point introduction to nested classes in Java.
Understanding “Raw type. References to generic types should be parameterized” Error
Learn about the Eclipse IDE process of issuing a “Raw type” popup to draw attention to the incorrect use of parameterized classes.
Analyze, Generate and Transform Code Using Spoon in Java
Learn how to use the Spoon library to analyze and modify Java source code.
LDAP Authentication Using Pure Java
Learn how authentication works in built-in LDAP
What Is a Spring Bean?
A quick and practical explanation of what a Spring Bean is.