A set of common interview exercises from class structure and initialization in Java
Search Results for: Java Class Structure
Compile All Java Classes in Directory Structure with javac
A quick and practical overview of how to compile all classes inside a directory using javac.
Introduction to JavaParser
A quick and practical guide to JavaParser.
Get the First and the Last Elements From an Array in Java
Learn how to access the first and last elements of a Java array.
How to Iterate a List of Maps in Java
Explore various techniques for iterating through a List of Maps in Java.
Convert an Optional to an ArrayList in Java
Explore various approaches to converting Optional to ArrayList.
Introduction to Java 22
Explore the latest Java release, Java 22, which is now in General Availability.
Generate Java Classes From Avro Schemas Using Gradle
Learn to generate Java classes from Apache Avro schemas using Gradle.
How to Use Pair With Java PriorityQueue
Learn how to use Comparators with PriorityQueues and how to change the sorting order in such queues.
Unit Test for hashCode() in Java
Explore the importance of unit testing for the hashCode() method in Java.
Implement the Builder Pattern in Java 8
Learn how to implement a Builder Pattern in Java 8.
SkipList Implementation in Java
A quick and practical guide to implementing SkipList in Java.
Converting a Java Project/Module Into a Maven Project/Module in IntelliJ IDEA
A quick and practical guide to converting a Java project/module into a Maven project/module in IntelliJ IDEA.
Set Matrix Elements to Zero in Java
In this tutorial, we learn various approaches to setting a matrix’s entire row and column to zero if one of the elements is zero.
New Features in Java 21
Learn about the new features of Java 21, like record patterns and switch enhancements for cleaner code.
Internet Address Resolution SPI in Java
Learn how Internet Address Resolution works in Java using the InetAddress API.
Get a Path to a Resource in a Java JAR File
Explore different methods to obtain the path to a resource within a Java JAR file.
The @Struct Annotation Type in Hibernate – Structured User-Defined Types
Quick intro to Hibernate’s @Struct annotation to create structured user-defined types.
Find Map Keys with Duplicate Values in Java
Learn how to find map keys associated with duplicate values in Java.
Flatten a Stream of Maps to a Single Map in Java
Learn to combine a stream of maps into a single result map in Java.