Learn to generate Java classes from Apache Avro schemas using Gradle.
Search Results for: class definition
Pass a Class as a Parameter in Java
Explore scenarios where we may need to pass a class as a parameter, enabling dynamic behavior and flexibility in our code.
@Query Definitions With SpEL Support in Spring Data JPA
Learn how to use Spring Expression Language to make custom queries more dynamic and hide database-specific actions in the repository layers.
Value-Based Classes in Java
Explore value-based classes and the notion of value types in Java.
Lambda Expression vs. Anonymous Inner Class
A quick and practical comparison between lambda expressions and anonymous inner classes.
Class Methods vs Instance Methods in Java
A brief comparison between class and instance methods in Java.
Convert Anonymous Class into Lambda in Java
A reminder of what an anonymous class is and how to convert it to a lambda expression.
A Guide to Maven Artifact Classifiers
Learn about artifact classifiers in Maven and understand the various scenarios where they are useful.
Static Classes Versus the Singleton Pattern in Java
Understanding how static classes and the Singleton design pattern compare in Java
The java.lang.NoClassDefFoundError in JUnit
In this article, we’ll understand why the java.lang.NoClassDefFoundError occurs in JUnit and how to fix it.
Overriding Column Definition With @AttributeOverride
Learn how to use @AttributeOverride to change a column mapping
The BeanDefinitionOverrideException in Spring Boot
Learn about the BeanDefinitionOverrideException in Spring Boot, and how to work with it.
What Is a Pojo Class?
Knowing the difference between a POJO and a JavaBean may be the key to unlocking the potential of our classes in core Java.
A Guide to the Java FileReader Class
Learn about the basic concepts of a Reader and how FileReader makes it simple to do read operations on text files though some examples.
Java Classes and Objects
Explore two basic concepts of the Java language – classes and objects – with examples of their implementation.
Retrieve Fields from a Java Class Using Reflection
Learn how to get the fields of a class using reflection, including inherited fields
Deprecated Classes in Spring
Explore deprecated classes in Spring and Spring Boot.
An Introduction to Java.util.Hashtable Class
A guide to understanding the Hashtable structure in Java.
Class Loaders in Java
Have a look at the behind-the-scenes of loading Java classes during runtime to the JVM.
Compiling Java *.class Files with javac
Learn how to use javac to generate *.class files.