Explore the key differences between execute() and submit() in Executor Service.
Search Results for: stack
Find Files by Extension in Specified Directory in Java
Learn to use core Java and external libraries to search for files in a directory (including sub-directories) that match a specific extension.
What Does It Mean to Hydrate an Object?
Learn about the meaning of the term hydration in the context of programming.
Recursively Sum the Integers in an Array
Explore two approaches to recursively summing integers in an array and analyze their performance using the JMH tool.
String’s Maximum Length in Java
Explore thе constraints and considеrations rеlatеd to thе maximum lеngth of strings in Java.
Convert an XML File to CSV File
Learn how to quickly convert XML files to CSV using Java
Context-Specific Deserialization Filters in Java 17
Explore Java’s latest enhancement, Context-Specific Deserialization Filter (JEP 415), in action.
Why Is sun.misc.Unsafe.park Actually Unsafe?
Learn why Unsafe.park() is actually unsafe and get an insight into the interworking of the park() and unpark(Thread) methods.
Java Weekly, Issue 515
In-memory HTTP server, SSL hot reloading, Kotlin multi-platform, new reactor features, and API versioning!
Java Weekly, Issue 514
Spring 6.1 is getting closer, and we still have lots of things to explore in Java 21 🙂
Implement Connect 4 Game with Java
A quick and practical guide to implementing Connect 4 Game with Java.
Convert String Containing XML to org.w3c.dom.Document
Learn how to convert a string with XML-based content into Org.w3c.dom.Document in Java.
Convert an XML Object to a String in Java
Learn how to convert an XML Document object to a string in Java.
Introduction to LangChain
Learn how to work with large language models in Java with LangChain.
Convert From List of CompletableFuture to CompletableFuture List
Learn how to convert from a List of CompletableFuture to a CompletableFuture of List.
Passing Strings by Reference in Java
Learn how to change a method’s input String while preserving immutability and avoiding side effects.
Why wait() Requires Synchronization?
Learn why the Java wait() method requires synchronization.
How to Write Hashmap to CSV File
Learn how to write HashMap to a CSV file.
Java Weekly, Issue 512
Markdown coming to Java comments? Oh, and lots of Kafka 🙂
Drawbacks of the Singleton Design Pattern
Learn the general drawbacks of the Singleton design pattern and check out some alternatives.