Learn when to use an interface and when to use an abstract class in Java.
Search Results for: interface declaration
Sealed Classes and Interfaces in Java
Explore sealed classes and interfaces, a preview feature in Java SE 15, delivered in Java 17.
Java Interfaces
Explore the concept of Java interfaces and learn how Java uses them to implement polymorphism and multiple inheritance.
A Guide to Inner Interfaces in Java
A quick and practical guide to inner interfaces in Java.
Lambda Expressions and Functional Interfaces: Tips and Best Practices
Tips and best practices on using Java 8 lambdas and functional interfaces.
Using JNA to Access Native Dynamic Libraries
Learn how to use JNA to access native code easily when compared to JNI.
Java Generics Interview Questions (+Answers)
Popular generics-related Java interview questions and of course answers.
Introduction to JavaParser
A quick and practical guide to JavaParser.
OpenAPI Generator Custom Templates
Learn how to use OpenAPI Generator Custom Templates to generate customized client and server code from REST API definitions.
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.
Improving Test Coverage and Readability With Spock’s Data Pipes and Tables
Learn how to use Spock’s data feeds in a where block.
Parse Java Source Code and Extract Methods
A quick and practical guide to parsing Java source code and extracting methods.
Convert an XML Object to a String in Java
Learn how to convert an XML Document object to a string in Java.
Unnamed Classes and Instance Main Methods in Java 21
Learn about the unnamed classes and instance main methods in Java 21.
How to Modify a Key in a HashMap?
Learn the remove() then put() approach to replacing a key in a Java HashMap.
Convert One Enum to Another Enum in Java
A quick and practical guide to convert one enum to another.
Analyze, Generate and Transform Code Using Spoon in Java
Learn how to use the Spoon library to analyze and modify Java source code.
Initialize an ArrayList with Zeroes or Null in Java
Learn the alternatives when we need to initialize an ArrayList with null or 0 values.
Generate Unit Test Data in Java Using Instancio
Learn how to eliminate manual data setup in tests by auto-generating the data using Instancio.
Differences Between Spring Data JPA findFirst() and findTop()
Learn about the findFirst() and findTop() methods from Spring Data JPA.