Core Java
-
The crypto quirks using JDK’s Cipher streams (and what to do about that)
In our day-to-day job we often run into the recurrent theme of transferring data (for example, files) from one location…
Read More » -
How to use Exchanger in Java with Example
Hello guys, if you are working in a concurrent Java application then you might have heard about the Exchanger class…
Read More » -
JVM Garbage Collection and Optimizations
Overview When troubleshooting systems for performance-related issues, memory optimizations are a place that needs a deep analysis of what each…
Read More » -
Be Careful When Modifying Data While Using a Java Iterator
As this semester begins to wrap up, I figured I’d share a little story of how I got very, very…
Read More » -
Java 8 Stream Intermediate Operations (Methods) Examples
A Complete guide to Java 8 Streams intermediate operations. List of all built-in Stream API Intermediate operations(methods) with examples. 1.…
Read More » -
Java UnknownHostException – Invalid Hostname for Server – How to Fix It?
A quick guide to An UnknownHostException and it is thrown if a java.net.UnknownHostException occurs while creating a connection to the…
Read More » -
How to process images and videos within Java JVM
Processing of images – let alone videos – within the Java JVM has always been a challenging task. ImageIO classes have come…
Read More » -
7 Examples to Read File into a byte array in Java
Hello guys, Java programmers often face scenarios in real-world programming, where they need to load data from a file into…
Read More » -
Mockito Matchers Precedence
This post is opinion. Let’s look at the verify method in Mockito for testing in Java. Example: verify(myMock).someFunction(123) – expects…
Read More »