Region pinning for G1, Spring meets CDS, class-file API, new features for Java 22, and tech predictions for 2024. Good stuff.
Search Results for: dict
Create a “Mutable” String in Java
Learn about mutable Strings and ways of mutating a String.
What Is the .idea Directory?
IntelliJ IDEA stores its settings in the .idea directory. We look at what’s stored here and whether to share the contents via source control.
How to Mock Environment Variables in Unit Tests
Learn how to write unit tests for code that uses environment variables with these Java testing libraries.
Deprecate Finalization in Java 18
Learn about the reason behind Java’s decision to deprecate finalization for removal.
How to Detect the Username Using Java
Explore a couple of ways to get the required information about the environment.
Query With IN Clause in Spring Data Cassandra
Learn how to implement the IN query clause using Spring Data Cassandra.
Difference Between Hashtable and ConcurrentHashMap in Java
Learn the differences between Hashtable and ConcurrentHashMap, delving into their performance metrics, synchronization features, and various other aspects.
Format Multiple ‘or’ Conditions in an If Statement in Java
Learn how to improve the readability of multiple conditions in an if statement.
Get Values and Keys as ArrayList From a HashMap
Explore how to obtain the key and value lists from a HashMap in Java.
Fail Maven Build if JUnit Coverage Falls Below Certain Threshold
Learn how to cause a Maven build to fail when the JaCoCo code coverage falls below a given threshold.
Converting JsonNode Object to Map
A quick and practical guide to converting JsonNode to Map in Java.
Smart Batching in Java
Learn about task batching techniques in Java and understand how the smart batching technique can help address the shortcomings of micro batching.
Resolving Mockito Exception: Wanted But Not Invoked
Learn how to resolve Mockito Exception: Wanted But Not Invoked.
Overview of NLP Libraries in Java
Explore different NLP libraries in Java and see how to implement some NLP tasks using Apache OpenNLP and Stanford CoreNLP.
Implicit Wait vs Explicit Wait in Selenium Webdriver
Explore the differences between the wait types in Selenium and learn a few best practices when using them in tests.
UUID vs. Sequential ID as Primary Key
A comparison between sequential IDs and UUIDs used as primary keys.
Pitfalls on Testing with Spring Boot
Learn the pitfalls of writing Spring Boot tests.
Combining Two Lists Into a Map in Java
Learn three ways to combine two given lists into a map through examples
Single Assert Call for Multiple Properties in Java Unit Testing
Learn three approaches to verifying multiple properties in one assert call using JUnit5 and AsssertJ.